M
M
Maryna2020-11-18 00:34:08
Command line
Maryna, 2020-11-18 00:34:08

What does this procedure do in a unix-like op?

How can you describe the result of this procedure? I can't figure it out on my own.

key_t  key; int shmid;
if ((shmid =shmget (key, sizeof(Message), 0666|IPC_CREAT))<0)
{printf(“ error shmget \nâ€); _exit(1);}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Karbivnichy, 2020-11-18
@hottabxp

Look here - Shared Memory.

C
CityCat4, 2020-11-18
@CityCat4

Allocates a section of shared memory via shmget (), if it did not work out, writes an error.
man shmget You
could also google about System V shared memory

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question