mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "arun4linux" <arun4linux@indiatimes.com>
To: "linux-kernel" <linux-kernel@vger.kernel.org>
Subject: event semaphore mechanism in Linux
Date: Fri, 18 Oct 2002 01:49:40 +0530	[thread overview]
Message-ID: <200210172025.BAA30795@WS0005.indiatimes.com> (raw)

Hi All,

  I'm involved in migrating an OS/2 system to Linux, which involves applications as well as drivers.

  I have some doubts/questions on implementing asynchronous,
repeated-interval timer mechanism with semaphore support.
	I meant porting Event Semaphores available in OS/2 to Linux.
(DosCreateEventSem,DosWaitEventSem,DosResetEventSem,DosPostEventSem)

  My need is to have semaphores which will be signalled (posted)
repeated-interval timer mechanis asynchronously.
  In other words,
                I need to implement asynchronous, repeated-interval
timer mechanism with semaphore support.

  We thought of using condition variable (pthread_cond_init, etc..)
and mutex combination to achieve this.

  But it seems pthread's mutex and condition variable synchronization
calls are off limits.  pthread mutex-locking routines are not
asynchronous signal safe.

	It would be helpful, if I could get to know on how to achieve this
event semaphore mechanism in Linux.

	Have a nice time.
  
Warm Regards
Arun



Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com

 Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from http://www.planetm.co.in

Change the way you talk. Indiatimes presents Valufon, Your PC to Phone service with clear voice at rates far less than the normal ISD rates. Go to http://www.valufon.indiatimes.com. Choose your plan. BUY NOW.


                 reply	other threads:[~2002-10-17 20:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200210172025.BAA30795@WS0005.indiatimes.com \
    --to=arun4linux@indiatimes.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®