[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] Figuring out the state of a thread
pthread_join.
On Tue, Dec 11, 2001 at 02:27:25PM -0500, Pablo Alvarez wrote:
> Hi all,
>
> For my implementation, I need to create new threads, let them run for a
> little while and die, and then keep creating new ones. Given that I cannot
> dynamically allocate memory within the RT context, I was thinking about
> having an array of pthread_ts, and cycling through it picking the first
> inactive thread when I needed a new one to create. But I cannot figure out
> how to find out, knowing only the thread handle, whether a thread is still
> alive (in which case I would want to leave it alone). Any suggestions?
>
> Thanks,
>
> Pablo Alvarez
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/