CSCE 3613 Lecture Notes - Lecture 8: Message Passing, Shared Memory, Process Identifier

19 views2 pages

Document Summary

The young eat the old if you let them. Processes within a system may be independent or cooperating. Cooperating process can affect or be affected by other processes, including sharing data. Shared memory- processes can read/write into same memory location, typically only kernel. Message passing- shared resource hopped across by processes. Paradigm for coop process, producer process produces info that is consumed by a consumer process. Unbounded-buffer places no practical limit on the size of buffer. Bounded-buffer assumes there is a fixed buffer size. When producer runs out of room in buffer array, consumer starts at beginning of array. Solution is correct but can only use buffer_size-1 elements. ; //do nothing because context switch may take longer than just waiting for info. Codes share in/out and buffer; therefore only sometimes works. Processes communicate without resorting to shared variables to synchronize their actions.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents