Warning: Undefined array key "view" in /var/www/html/wp-content/uploads/classes/so/1718/lab-examples/index.php on line 2

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/uploads/classes/so/1718/lab-examples/index.php:2) in /var/www/html/wp-content/uploads/classes/so/1718/lab-examples/index.php on line 47

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/uploads/classes/so/1718/lab-examples/index.php:2) in /var/www/html/wp-content/uploads/classes/so/1718/lab-examples/index.php on line 48

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/uploads/classes/so/1718/lab-examples/index.php:2) in /var/www/html/wp-content/uploads/classes/so/1718/lab-examples/index.php on line 49

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/uploads/classes/so/1718/lab-examples/index.php:2) in /var/www/html/wp-content/uploads/classes/so/1718/lab-examples/index.php on line 50

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/uploads/classes/so/1718/lab-examples/index.php:2) in /var/www/html/wp-content/uploads/classes/so/1718/lab-examples/index.php on line 51
/** * esempio base di creazione e rimozione di una coda di messaggi */ #include #include #include #include #include int main() { int ds_coda; key_t chiave = 40; // scelgo una chiave arbitraria (sperando che sia libera...) printf("Creo la coda di messaggi di chiave %d... ", chiave); if ((ds_coda = msgget(chiave, IPC_CREAT | IPC_EXCL | 0660)) == -1) { perror("msgget"); exit(1); } printf("creata (descrittore %d)\n", ds_coda); sleep(5); printf("Chiudo la coda.\n"); msgctl(ds_coda, IPC_RMID, NULL); }