John, I can send you code, but I have since read in the documentation that the API pthread_create() can only be called from the linux kernel thread (i.e. init_module()), so I have accepted that this as a limitation.
It definitely crashes my system, so there must be some difference between our set-ups if you can get away with it. David -----Original Message----- From: John Jacques [mailto:[EMAIL PROTECTED]] Sent: 15 October 2001 14:29 To: [EMAIL PROTECTED] Subject: Re: [rtl] create thread from thread? I just ported an application to RTLinux. One thread is created in the init_module and that thread creates all of our other threads. If you can send me a simple example that crashes maybe I can help. John Jacques [EMAIL PROTECTED] Chunky Kibbles wrote: > > On Fri, Oct 12, 2001 at 04:17:39PM +0100, David Hamilton wrote: > > Is it allowed to create a thread from within a thread in the real-time > > kernel? > > I can create two threads from the init_module function, but if I try to > > create the second from within the first thread, my system crashes big > > time!!! > > Well, you could probably pull it off with some scary voodoo, but I > wouldn't recommend it. Doing real-time htings, then copying a vast > block of memory and invoking stuff in it, with all that entails? > > You're better off creating a variety of thread pool in init_module as > a one-off instead of trying to create threads by others that're doing > RT things. > > Gary (-; > -- [rtl] --- > To unsubscribe: > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR > echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED] > -- > For more information on Real-Time Linux see: > http://www.rtlinux.org/ -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/
