linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: Timer task synchronization
@ 2008-05-30 14:37 Spoorthi KA
  2008-06-03 12:23 ` Detlev Zundel
  0 siblings, 1 reply; 2+ messages in thread
From: Spoorthi KA @ 2008-05-30 14:37 UTC (permalink / raw)
  To: linuxppc-embedded

Hi,

    I am dealing with timer synchronization problem.. we have two timer 
threads. The two timers are started one after the other. The first timer 
timeout value is 10s and the second timer tiemout value is 15s.

The first timer fires after 10s and the timer thread is suspended until 
the second timer completes its task. once the second timer is done the 
first timer resumes.

sometimes the first timer resumes back even before the second timer 
starts and blocks the second timer thread..

can anybody plz help me with this...


spoorthi

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Timer task synchronization
  2008-05-30 14:37 Timer task synchronization Spoorthi KA
@ 2008-06-03 12:23 ` Detlev Zundel
  0 siblings, 0 replies; 2+ messages in thread
From: Detlev Zundel @ 2008-06-03 12:23 UTC (permalink / raw)
  To: linuxppc-embedded

Hi Spoorthi,

>    I am dealing with timer synchronization problem.. we have two timer
> threads. The two timers are started one after the other. The first
> timer timeout value is 10s and the second timer tiemout value is 15s.
>
> The first timer fires after 10s and the timer thread is suspended
> until the second timer completes its task. once the second timer is
> done the first timer resumes.
>
> sometimes the first timer resumes back even before the second timer
> starts and blocks the second timer thread..

Reading your text, I have to admit, I have no idea whether you talk
about kernel threads, or posix threads and thus about kernel timers or
user space timers?

Without giving any more detail on what you try to do, and especially,
where you think the system does not behave as you would expect it,
nobody will be able to help you here.  Best of course is to show us some
stripped down code that exposes what you think is the problem.

Apart from that I guess that you somehow have synchronization problems
not directly related to timers at all, but that's just a gut feeling.

Cheers
  Detlev

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu@denx.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-03 12:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-30 14:37 Timer task synchronization Spoorthi KA
2008-06-03 12:23 ` Detlev Zundel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).