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
> -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
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
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
4 matches
Mail list logo