thumpkidd9
Programmer
It is my understanding that after creating the semaphore, you can access it like an array. So if I used the same code as used previously
it should of made N instances of sid1, and can be accessed by sid1[0-N] no?
Thanks
Code:
sid1=semget(IPC_PRIVATE,N,0666|IPC_CREAT);
if(sid1==-1)perror(0);
it should of made N instances of sid1, and can be accessed by sid1[0-N] no?
Thanks