Patent · US Expired

GPIB system and method which allows multiple thread access to global variables

US5958028A · kind A · utility

10Cited by
6References
17Claims
0Family size

Assignee

Inventors

Key dates

Filing dateJul 22, 1997
Grant dateSep 28, 1999
Priority date
Expiry dateJul 22, 2017

Classification

  • Technology area (CPC G)Physics
  • CPC primaryG06F9/52
  • WIPO fieldComputer technology
  • WIPO sectorElectrical engineering

Abstract

A system and method which enables a plurality of threads in a multithreaded application to each access per-thread copies of GPIB global variables in a GPIB system. According to the present invention, the plurality of threads use a special set of thread-local GPIB calls to perform the per-thread accesses. Whenever a thread first makes a GPIB call, the GPIB driver software begins maintaining a private copy of all of the GPIB global variables for the respective thread. The driver preferably maintains a separate private copy for each thread. Later, when the thread desires to access a per-thread copy of one or more global variables, the thread uses a thread-local GPIB call to perform the per-thread access. The thread-local functions used to access these per-thread GPIB global variables are ThreadIbsta, ThreadIberr, ThreadIbcnt, and ThreadIbcntl. When the GPIB driver level software receives a call to a thread-local function to access a per-thread global variable, the software determines the appropriate value for the respective thread and returns the per-thread value to the respective requesting thread. In one embodiment, the thread can specify a memory area where the per-thread global va…

Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.