Processes


• A traditional or heavyweight process is equal to a task with one thread


Download 0.8 Mb.
bet7/9
Sana16.06.2023
Hajmi0.8 Mb.
#1496696
1   2   3   4   5   6   7   8   9
Bog'liq
os eng

A traditional or heavyweight process is equal to a task with one thread.

Single and Multithreaded Processes


Responsiveness
Resource Sharing
Economy
Scalability
Benefits

Cooperating Processes

  • Independent process cannot affect or be affected by the execution of another process
  • Cooperating process can affect or be affected by the execution of another process
  • Advantages of process cooperation
    • Information sharing
    • Computation speed-up
    • Modularity
    • Convenience

Synchronization

  • Message passing may be either blocking or non-blocking
  • Blocking is considered synchronous
    • Blocking send has the sender block until the message is received
    • Blocking receive has the receiver block until a message is available
  • Non-blocking is considered asynchronous

Interproces Communication

Mechanism for processes to communicate and to

synchronize their actions.

• IPC is best provided by message-passing systems.

• IPC facility provides two operations:

send(message) – message size fixed or variable

receive(message)

• If P and Q wish to communicate, they need to:

establish a communication link between them

– exchange messages via send/receive

• Processes can communicate in two ways:

– Direct communication

Indirect communication

Direct Communication


Processes must name each other explicitly:
send (P, message) – send a message to process P
receive(Q, message) – receive a message from process Q
• Properties of communication link
Links are established automatically.

Download 0.8 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling