Re: semaphores and noatomic flag

2001-06-05 Thread davide.rossetti
whould it be possible to use pthread semaphore/mutex/cond_var on shared-via-mmap() chunks of memory instead ? regards -- +--+ |Rossetti Davide INFN - Sezione Roma I - gruppo V, prog. APEmille| | web: http://a

Re: semaphores and noatomic flag

2001-06-05 Thread Daniel Phillips
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Mihai Moise > > up(semaphore 1) /* wake up client */ > down(semaphore 0) /* put iself to sleep */ > > The problem is that the two system calls make the whole process twice > as slow a

RE: semaphores and noatomic flag

2001-06-04 Thread Anil Kumar
Will it not be a very specialized case rather than being general call type? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mihai Moise Sent: Monday, June 04, 2001 11:05 PM To: [EMAIL PROTECTED] Subject: semaphores and noatomic flag I write this to

semaphores and noatomic flag

2001-06-04 Thread Mihai Moise
I write this to discuss the reasons why the semop system call should have an IPC_NOATOMIC flag. Suppose we have two processes, called client and server, which communicate through a shared memory segment and two semaphores, and need to synchonize their activities so that they don't operate simulta