PDA

View Full Version : Linux API functions



Micko
07-01-2004, 11:37 AM
Hi, I'm reading free pdf chapters from book Operating systems from Garry Nutt, and in the chapter 8
Basic
Synchronization
Principles
I found one example in which is written that critical section problem can be avoided by using enableInterrupt() and disableInterrupt() function.
Are these functions really exists or it is just pseudo example I don't know because don't know anything about Unix/Linux
Thanks!

jim mcnamara
07-01-2004, 12:44 PM
Those are not Unix system calls (analagous to Windows API, but NOT the same).

Access to shared memory is usually controlled by a mutex, but there are other ways. Critical sections are a kind of shared memory.

Micko
07-01-2004, 03:32 PM
Can I say Linux API at all?
Is API specific only to winows?
I thought that API functions are those functions in kernel32.dll and similar and system call is actually API function call.

Hammer
07-01-2004, 03:39 PM
API is a generic term, not specific to Windows or *nix.
http://foldoc.doc.ic.ac.uk/foldoc/foldoc.cgi?query=api&action=Search