freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

操作系統(tǒng)概念課件ch-wenkub.com

2024-10-03 00:00 本頁面
   

【正文】 P2 and P3 receive. ? Who gets the message? ? Solutions ? Allow a link to be associated with at most two processes. ? Allow only one process at a time to execute a receive operation. ? Allow the system to select arbitrarily the receiver. The sender is notified who the receiver was. IPC: Naming ? Properties of indirect munication link ? Link established only if processes share a mon mailbox ? A link may be associated with many processes. ? Each pair of processes may share several munication links. ? Link may be unidirectional or bidirectional. ? Mailbox can be owned by a process or OS. ? create a new mailbox ? send and receive messages through mailbox ? destroy a mailbox IPC: Synchronization ? Blocking and Nonblocking ? Blocking send ? Nonblocking send ? Blocking receive ? Nonblocking receive ? Blocking send and blocking receive ? rendezvous. ? Nonblocking send and blocking receive ? the most mon one. IPC: Buffering ? Queue of messages attached to the link。 while (1) { while (in == out) 。 while (1) { while(((in + 1)%BUFFER_SIZE) == out) 。 item buffer[BUFFER_SIZE]。 few very long CPU bursts. Process scheduling: Context switch ? When CPU switches to another process, the system must save the context of the old process and load the saved context for the new process. ? The context of a process is represented in the PCB of a process. ? To freeze it。 to preserve it。 int in = 0。 /* do nothing */ buffer[in] = nextProduced。 /* do nothing */ nextConsumed = buffer[out]。 implemented in one of three ways. ? Zero capacity – 0 messages Sender must wait for receiver (rendezvous). ? Bounded capacity – finite length of n messages Sender must wait if link full. ? Unbounded capacity – infinite length Sender never waits. IPC: An example: Mach ? Each task has two special mailboxes: the Kernel mailbox and the Notify mailbox. ? Message transferring ? msg_send, msg_receive, msg_rpc. ? Mailbox creation ? port_allocate. IPC: An example: Windows 2K ? LPC: local procedure call facility ? Two types of ports: connection ports and munication ports. ? Messagepassing techniques ? For small messages, to use the port’s message queue as intermediate storage and copies the message from one process to other ? For a large message, t
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1