23.07.2013 Views

Inter-Process-Communication - Operating Systems Group

Inter-Process-Communication - Operating Systems Group

Inter-Process-Communication - Operating Systems Group

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Microkernel<br />

Construction<br />

Benjamin<br />

Engel<br />

Torsten<br />

Frenzel<br />

TU Dresden<br />

<strong>Operating</strong> <strong>Systems</strong><br />

<strong>Group</strong><br />

Switching from Send to Receive<br />

Switch from send part to receive part atomically<br />

Why prepare receive part atomically?<br />

– Servers do not trust clients<br />

➔ Servers reply with timeout zero<br />

➔ Client needs to be ready to receive immediately after sending<br />

➔ Flip one bit to switch from send to receive part<br />

Client thread<br />

Kernel<br />

Server thread<br />

call call<br />

Switch<br />

atomically<br />

Send with<br />

Timeout zero<br />

wait reply and wait reply<br />

12

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!