Re: problem handling POSIX thread on FreeBSD

2005-06-30 Thread Daniel Eischen
On Thu, 30 Jun 2005, Pablo Mora wrote: > >Not sure I understand the question. What do you mean by S.O? > > , sorry by my badly english, the correct word is O.S (operative system). > > >you saying that since the threads are POSIX, that you would >expect > the program to act the same on all Operati

Re: problem handling POSIX thread on FreeBSD

2005-06-29 Thread Pablo Mora
>Not sure I understand the question. What do you mean by S.O? , sorry by my badly english, the correct word is O.S (operative system). >you saying that since the threads are POSIX, that you would >expect the program to act the same on all Operating Systems? exactly, that thought before your a

Re: problem handling POSIX thread on FreeBSD

2005-06-29 Thread John Baldwin
On Tuesday 28 June 2005 07:58 pm, Pablo Mora wrote: > Ok, I understand, but by being threads POSIX should be executed of the > same one in any type of S.OR? Not sure I understand the question. What do you mean by S.O? Are you saying that since the threads are POSIX, that you would expect the pr

Re: problem handling POSIX thread on FreeBSD

2005-06-28 Thread Pablo Mora
S.O , sorry -- Concepción, Chile. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: problem handling POSIX thread on FreeBSD

2005-06-28 Thread Pablo Mora
Ok, I understand, but by being threads POSIX should be executed of the same one in any type of S.OR? thanks to all -- Concepción, Chile. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscrib

Re: problem handling POSIX thread on FreeBSD

2005-06-27 Thread John Baldwin
On Monday 27 June 2005 01:32 am, Pablo Mora wrote: > /* file: test.c */ > #include > #include > #include > #include > #include > > char buffer[512]; > pthread_mutex_t mutex, mutex2; > pthread_t hilo1, hilo2; > > void f1(void* ptr) > { > int i,n=10; > int valor=0; > char*p=(char*)p

Re: problem handling POSIX thread on FreeBSD

2005-06-26 Thread Pablo Mora
/* file: test.c */ #include #include #include #include #include char buffer[512]; pthread_mutex_t mutex, mutex2; pthread_t hilo1, hilo2; void f1(void* ptr) { int i,n=10; int valor=0; char*p=(char*)ptr; for(i=0;ihttp://lists.freebsd.org/mailman/listinfo/fr

Re: problem handling POSIX thread on FreeBSD

2005-06-26 Thread Pablo Mora
Hi, very thanks you... i running fbsd v4.11 stable. -- Concepción, Chile. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: problem handling POSIX thread on FreeBSD

2005-06-26 Thread Dan Nelson
In the last episode (Jun 26), Pablo Mora said: > int main() { > > if(pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM) != 0) > /* handler */ > > } > > $ gcc taller.c -pthread > $ ./a.out > pthread_attr_setscope: Unknown error: 0 > $ > > PTHREAD_SCOPE_SYSTEM fail on freebsd ?

problem handling POSIX thread on FreeBSD

2005-06-26 Thread Pablo Mora
/* file: taller.c */ int main() { if(pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM) != 0) /* handler */ } $ gcc taller.c -pthread $ ./a.out pthread_attr_setscope: Unknown error: 0 $ PTHREAD_SCOPE_SYSTEM fail on freebsd ? help me please... very thanks... -- Concepción