1.1)
, .
1.3)
:
- (, MS-DOS, MSX)
- (OC EC, OS/2, UNIX, Windows 95).
:
- (MS-DOS, Windows 3.x, OS/2);
- (UNIX, Windows NT).
.
:
- . , , , , .
- . (, , , , ..).
- . , , . , , (, Novell Netware), .
1.5)
() . , , , , , , .
, . . , . , , . .
. , . , , .
2.1)
, , , (, ).
2.2)
́ (, , . .) , , , , , , . .
( . thread of execution); ( . thread) .
|
|
- . , .
:
1.
2. .
3.
- . .
- (. fibers). , . , . , . .
2.3)
(. Inter-Process Communication, IPC)
, , .
, . , .
, , , (Dijkstra) 1965 .
, down up. down . , down . , down , . , . , . .
up . , down, (, ) down. , up, , , 0, . . up, wakeup .
, , , .
, .
|
|
, , . send() recieve(). , . , .
, .
2.4)
1965 , . : , . , , . .
. , , , . , , . : , .
, , - , .
: . , . , .
, . , . , , , . ?
, , . , : , , .
, . , . , . , , ( ), ( ). , .
: customers, (, , ); barbers, (0 1), , mutex . waiting, .
2.5)
:
1 () .
2 .
3 . : 4 , 2 , 2 . : , .
|
|
3.1)
, .
, .
- (: ).
- (: ).
.
3.2)
:
1 - - , .
2 - , .
3 .
4 - , , , .
:
- ( ).
- ( , ).
- .
- , .