By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,605 Members | 1,415 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,605 IT Pros & Developers. It's quick & easy.

timer in C

P: n/a
I wrote a little program that managed a timer.
Since I had the need to use another one within my program I inserted a
new one, but I noticed that the new one didn't start as its
signl_handler didn't start.
Is it possible to manage two or more timer (ITIMER_REAL) in a thread in
C language?

Thank you very much for your help

Pietro

Nov 9 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
pietro wrote:
>
I wrote a little program that managed a timer. Since I had the
need to use another one within my program I inserted a new one,
but I noticed that the new one didn't start as its signl_handler
didn't start.

Is it possible to manage two or more timer (ITIMER_REAL) in a
thread in C language?
There are no threads in the ISO standard C language. Find a
newsgroup that deals with your system.

--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>

Nov 9 '06 #2

P: n/a
pietro <tr**********@virgilio.itwrote:
I wrote a little program that managed a timer.
Since I had the need to use another one within my program I inserted a
new one, but I noticed that the new one didn't start as its
signl_handler didn't start.
Is it possible to manage two or more timer (ITIMER_REAL) in a thread in
C language?
Let me guess: you're writting a program for some kind of Unix. Then
you better go to comp.unix.programmer because that's where this
question is on-topic - setitimer() is a POSIX extensions to the C
language, and since (like treads) it's a system specific extension
you won't get too much help about that here.

Regards, Jens
--
\ Jens Thoms Toerring ___ jt@toerring.de
\__________________________ http://toerring.de
Nov 9 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.