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

正文內(nèi)容

操作系統(tǒng)概念課件ch(編輯修改稿)

2024-10-23 00:00 本頁面
 

【文章內(nèi)容簡介】 a fork to replace the process’ memory space with a new program. Process operation: Process termination ? Process executes last statement and asks the operating system to decide it (exit). ? Output data from child to parent (via wait). ? Process’ resources are deallocated. ? Parent may terminate execution of children processes (abort). ? Child has exceeded allocated resources. ? Task assigned to child is no longer required. ? Parent is exiting. ? Operating system does not allow child to continue if its parent terminates. ? Cascading termination. PROCESS COOPERATING ? Independent processes vs 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 ? Why process cooperation? ? Information sharing ? Computation speedup ? Modularity (system) ? Convenience (user) ? Mechanisms for process cooperation ? Communication and ? synchronization Process cooperating: The Producerconsumer problem ? The producerconsumer problem: a producer process produces information that is consumed by a consumer process. ? Print program ? print driver, ? Compiler ? assembler ? loader. ? Communication choices: ? IPC (Interprocessmunication), ? Shared memory. SHARED MEMORY COMMUNICATION ? A buffer pool: filled by the producer and consumed by the consumer. ? unboundedbuffer places no practical limit on the size of the buffer, ? boundedbuffer assumes that there is a fixed buffer size. Shared memory: BoundedBuffer – SharedMemory Solution ? Shared data define BUFFER_SIZE 10 typedef struct { . . . } item。 item buffer[BUFFER_SIZE]。 int in = 0。 int out = 0。 Shared memory: BoundedBuffer – SharedMemory Solution ? Producer process item nextProduced。 while (1) { while(((in + 1)%BUFFER_SIZE) == out) 。 /* do nothing */ buffer[in] = nextProduced。 in = (in + 1) % BUFFER_SIZE。 } Shared memory: BoundedBuffer – SharedMemory Solution ? Consumer Process item nextConsumed。 while (1) { while (in == out) 。 /* do nothing */ nextConsumed = buffer[out]。 out = (out + 1) % BUFFER_SIZE。 } INTERPROCESS COMMUNICATION (IPC) ? IPC . Sharedmemory ? Efficiency, ? Centralized vs Dis
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1