This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
newbie thread question
- To: "'ecos-discuss at sourceware dot cygnus dot com'" <ecos-discuss at sourceware dot cygnus dot com>
- Subject: [ECOS] newbie thread question
- From: John Gumb <JGumb at Ridgeway-Sys dot com>
- Date: Fri, 31 Aug 2001 13:46:11 +0100
Folks,
Probably demonstrating my ignorance here....
Simple thread question. Say I've got an application which spins up threads
which have a short lifetime and do this a lot. Eg. create a thread, it does
something then exits. The thread enters 'exited' state.[the docs say exited
threads enter 'suspended' but insight reports 'exited'.]
Does the thread remain registered with the scheduler ? What I want to avoid
is the scheduler scheduling thousands of exited threads. As far as I can see
from the docs, to remove a thread from the scheduler you need
cyg_thread_kill.
Cheers,
John Gumb
Software Engineer
Ridgeway Systems and Software
Tel +44 118 9381108 (direct dial)
Tel +44 118 9351111 (switchboard)
Fax +44 118 9354444
email jgumb@ridgeway-sys.com
web www.ridgeway-sys.com