Unix Programming - semaphore/mutex

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > March 2007 > semaphore/mutex





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author semaphore/mutex
anoopsingh@inbox.com

2007-03-29, 7:19 am

how to use semaphore/mutex between two process not amongs threads in a
single process ??

Jens Thoms Toerring

2007-03-29, 1:24 pm

anoopsingh@inbox.com wrote:
> how to use semaphore/mutex between two process not amongs threads in a
> single process ??


Your question seems to be a bit unspecific - do you want to know
which functions for creating and controlling IPC semaphores there
are (semctl/semget/semop for SysV semaphores or sem_close/sem_open/
sem_timedwait/sem_unlink and sem_destroy/sem_getvalue/sem_init/
sem_post/sem_trywait/sem_wait for named and unnamed POSIX sema-
phores, but not all will be available everywhere) or how to use
them in a program? In the later case you probably will have to
tell what actually you want to do with them.

Regards, Jens
--
\ Jens Thoms Toerring ___ jt@toerring.de
\__________________________ http://toerring.de
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com