[so] [Tema2][Linux]Deschidere semafoare

mihai chiritescu mihaichiritescu at gmail.com
Sun Apr 19 23:49:54 EEST 2009


In server am pus:
sem[i] = sem_open(sem_names[i], O_CREAT | O_WRONLY, 0777, 1);
in loc de
sem[i] = sem_open(sem_names[i], O_CREAT | O_RDWR, 0777, 1);

iar in client:
sem[i] = sem_open(sem_names[i],O_RDONLY);
in loc de
sem[i] = sem_open(sem_names[i],O_RDWR);
Si totul a mers perfect.


Cineva mai cu experienta imi poate explica de ce nu mergea si varianta mea?

Multumesc,

Mihai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20090419/5ca98f64/attachment.htm>


More information about the so mailing list