View Single Post
  #2   Spotlight this post!  
Unread 17-01-2009, 14:23
gvarndell's Avatar
gvarndell gvarndell is offline
Software Engineer
AKA: Addi's and Georgie's Dad
FRC #1629 (GaCo)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Grantsville, Maryland
Posts: 350
gvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond repute
Re: c++ multi threaded program?

Quote:
Originally Posted by Joohoo View Post
I was perusing through the standard include files and I found one of my old friends the pthread.h file. Now I know that vxworks is POSIX compliant. But does any one know if it is possible to create a multi threaded program to run on the crio? Has anyone else noticed this? Is any one looking to use this functionality to their advantage?
vxWorks 6.3 is fairly POSIX compliant, and does support pthreads.
Whether or not can use them depends on how the kernel was configured.
Since the configuration of the kernel we're stuck with is largely unknown and must be guessed at, I can't say.
Beware looking for symbols that might indicate this or that is configured into the kernel though.
Object files are sometimes linked in the kernel even if the kernel features that module supports are not configured.
So, using nm or some such, you might find that pthread_create is 'in' the kernel yet it won't work right because the kernel is not properly configured.
I do wish the good folks at WPI would give us a way to know the kernel configuration -- even better, give us the BSP so we can build our own kernels.