delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/08/13:12:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
MIME-Version: 1.0
Subject: RE: Time out server mechanism in cygwin
Date: Thu, 8 Jul 2004 10:11:56 -0700
Message-ID: <4E9A9436C008314EAA32033B23E96FD90191C4C3@thorondor.wwp.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Amit Grover" <Amit DOT Grover AT worldwidepackets DOT com>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i68HC6uL010346

Hi,

If I understood your suggestion correctly, this is what I think.

I can use pthread but problem is following
What if process A wants to create multiple timers, should I create
multiple pthreads for each timer request. Probably not. What if there
are say 20 processes in the system and all of them wants to create
timers for them.

So what I think is that it would be easy if we have one standalone
process whose job is to accept timer requests from other processes in
the system and inform back to these processes by some means of some IPC
message that timer expired now do what you want to do.

I am very new to cygwin and I was wondering that there must be some kind
of mechanism (as mentioned above) which can help me achieve this goal.
I can implement this process but wondering if it is already implemented
so that I don't have to spend that much time.

Thanks a lot for quick reply.
Amit





-----Original Message-----
From: Igor Pechtchanski [mailto:pechtcha AT cs DOT nyu DOT edu] 
Sent: Wednesday, July 07, 2004 11:30 AM
To: Amit Grover
Cc: cygwin AT cygwin DOT com
Subject: Re: Time out server mechanism in cygwin

On Wed, 7 Jul 2004, Amit Grover wrote:

> Hi,
> I read the documents of cygwin but could not find anywhere any
> information about timeout server mechanism in cygwin.
>
> This is what I am trying to achieve,
> I am looking for some kind of mechanism (timeout server mechanism)
> through which Process A can register some message type and user
defined
> structure and timeout value (say X) to timeout server and after X
> seconds process A get back this message from the timeout server.
>
> Is there exists any kind of mechanism in cygwin?
>
> Thanks
> Amit

Why would you even need a separate server for this?  Won't the pthreads
functionality let you do what you want within the process (using timed
wait of some sort)?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his
route
to the bathroom is a major career booster."  -- Patrick Naughton



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019