Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
(Stallings, 2009)
Concurrency Challenges
The operating system must accomplish the following objectives that may also
present issues:
The following can be implemented to avoid the errors that can occur when
utilizing concurrency:
1
Multiprocessing
Synchronization:
Communication:
2
Multiprocessing
Synchronization
o Sender and receiver may or may not be blocking
o Sender blocked until message is received
o Receiver blocked until message is received
o Both sender and receiver are blocked
o Nonblocking send, blocking receive
o Nonblocking send, nonblocking receive
Direct addressing
o Send includes specific identification of destination process
o Receive could require receiver to explicitly designate a sender
o Receive could use source parameter to return to calling process
when receive is performed
Indirect addressing
o Messages sent to shared data structure consisting of queues
o Queues sometimes known as mailboxes
o One process sends a message to mailbox and other process picks
up message from mailbox
Reference