[Rtai] pthreads problem with RHEL 5.2 + RTAI 3.6.1

Paolo Mantegazza mantegazza at aero.polimi.it
Wed Sep 3 18:22:11 CEST 2008


Jim Pisano wrote:
> We have a kernel module which we load as a standard procedure which does 
> the start_rt_timer() in one-shot mode, it's just not visible in this test.
> 

Sorry. It was just that in repeating it year I saw threads nit running 
and checked for it. That done I saw no problem. There is any hidden 
message in the kernel log, i.e. dmesg, to help for further clues?

Paolo.

> -Jim
>>>
>>>
>>
>> Maybe I've not searched well but I see a call to rt_sleep without a 
>> prior start_rt_timer. Am I right?
>>
>> Paolo.
>>
>>> When I run this on my RHEL 5.2/RTAI 3.6.1 system, I get the following:
>>>
>>> Creating thread # 1
>>> in Thread1: 0:0
>>> in Thread1: 0:1
>>> in Thread1: 0:2
>>> in Thread1: 0:3
>>> in Thread1: 0:4
>>> in Thread1: 0:5
>>> in Thread1: 0:6
>>> in Thread1: 0:7
>>> in Thread1: 0:8
>>> in Thread1: 0:9
>>> Creating thread # 2
>>> Resource temporarily unavailable
>>> Couldn't create pthread: 11
>>>
>>> I repeated this without RTAI, just creating a bunch of pthreads with 
>>> this program: 
>>> http://almasw.hq.eso.org/almasw/pub/CORR/WeeklyReports2008Sep05/testPthread.cpp 
>>> & I don't have any problems.
>>>
>>> Is this some sort of O/S & RTAI conflict? I'm pretty stuck at this 
>>> point.
>>>
>>> - Jim
>>>
>>> _______________________________________________
>>> Rtai mailing list
>>> Rtai at rtai.org
>>> https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai
>>>
> 



More information about the Rtai mailing list