Monitor (data-processing)
See also: Monitor
A monitor is an approach to synchronize two or several tasks which uses shared resources, usually of the separate apparatuses (printers) or whole of variables.
Formerly, the operating systems were reduced to a simple monitor connecting the execution of the others (for example DOS of IBM 360 at the end of the years 1960). This direction is uncommon today and has nothing to do with the current direction (synchronization).
Mutual exclusion
A monitor is made up de :- a whole of Procedure S allowing the interaction with the shared resource
- a Variable Bolt of mutual Exclusion
- of the S associated with the resource
- a monitor not variable which defines the claims necessary to obtaining the conditions.
Examples of use of the monitors in Java
That is to say two Thread which wishes to communicate between them. The first thread sends messages to the second thread via a File. If the file is empty, then the second thread must put new message on standby. Such a file can be implemented using the following code:
See too
| Random links: | Frankly with horse | Subdivisions of Érythrée | Silent Disco music | PGA Turn off Australasia | Museum Faure (Aix-the-Baths) | Calvagh_O'Donnell |