Please enable JavaScript.
Coggle requires JavaScript to display documents.
Semaphores, Shared Memory, and Message Queues (Semaphores (Multiple…
Semaphores, Shared Memory, and Message Queues
-
Shared memory
-
-
-
methods
-
-
-
shmctl
control functions, takes an id a command and the structure with the modes and permissions
Message Queues
-
functions
msgget
Creates a message queue
int msgget(key_t key, int msgflg);
-
msgrcv
Receives message
int msgrcv(int msqid, void *msg_ptr, size_t msg_sz, long int msgtype, int msgflg);
msgctl
Control function
int msgctl(int msqid, int command, struct msqid_ds *buf);
-
-
-
ITCR, Sede Central, Escuela de Computación
IC-6000 Principios de Sistemas Operativos
Angelo Ramírez Ortega, 2017080055
II Semestre 2019, Esteban Arias Méndez
Lectura #7 semana #7
Semaphores, Shared Memory, and Message Queues
Beginning Linux Programming