[Soekris] Pthreads on net4801 with Fedora
Jos Visser
josv at osp.nl
Thu Jan 19 10:01:57 UTC 2006
It's got nothing to do with the 4801, but which Linux Threading library
you are using.
Check http://www.llnl.gov/LCdocs/pthreads/index.jsp?show=s9.3
++Jos.nl
On Thu, Jan 19, 2006 at 10:52:00AM +0100 it came to pass that Flemming Lindblad wrote:
> I am running Fedora Core 1 on a net4801. When trying to use
> an application that requires pthreads (kannel SMS gateway) I
> run into problems with threads that seem to be implemented
> as processes.
>
> The following test program tst.c
>
> --
> #include <pthread.h>
> #include <unistd.h>
> int pid;
> void testpid(void* foo);
> int main(void){
> pthread_t child;
> pid=getpid();
> printf("PID: %d\n",pid);
> pthread_create(&child,NULL,(void*)testpid,NULL);
> pthread_join(child,NULL);
> return 0;
> }
> void testpid(void* foo){
> int mypid=getpid();
> printf("PID: %d\n",mypid);
> }
> --
>
> run on the soekris yields
>
> [root at juhu tmp]# gcc -pthread tst.c
> [root at juhu tmp]# ./a.out
> PID: 9104
> PID: 9106
>
> whereas on another (Intel) Fedora installation the result is
> more encouraging:
>
> [lindblad at dax tmp]$ gcc -pthread tst.c
> [lindblad at dax tmp]$ ./a.out
> PID: 308
> PID: 308
>
> Are there any problems with pthreads on the net4801?
>
>
>
>
> --
> Ash Yig durbatuluk, ash Yig gimbatul,
> Ash Yig thrakatuluk agh burzum ishi krimpatul.
> _______________________________________________
> Soekris-tech mailing list
> Soekris-tech at lists.soekris.com
> http://lists.soekris.com/mailman/listinfo/soekris-tech
--
Words cannot do what action does louder...
More information about the Soekris-tech
mailing list