pthread_create failed upon execution


 
Thread Tools Search this Thread
Operating Systems Solaris pthread_create failed upon execution
# 1  
Old 01-27-2010
pthread_create failed upon execution

Im trying to run an application i compiled (iperf) and i get an error telling me that it cant create the pthread. when i ran the ./configuration one of the things it checked was for pthreads which came back ok.

Im not really sure where to even start to resolve this. i have been unable to find where exactly the pthread library is but based on LD_LIBRARY_PATH and the RUNPATH and RPATH in the app itself i dont think its a pathing problem. I've run this on a couple of V10 machines fine but this only seems to be a problem with our V9 systems.

where do i start?

Thanks

---------- Post updated at 10:15 AM ---------- Previous update was at 08:25 AM ----------

i also did a ldd and it is able to find all of the libraries it needs.

i already that it may have hit a thread limit but have been unable to find out where this might be set in solaris 9. where should i look for such limits?
# 2  
Old 01-27-2010
Hi,

what error are you getting? What compiler are you using?

The first idea that comes to my mind would be to check that the program is compiled for Pthreads (-mt -lpthread using cc). I understood that you have already checked out, right?

Loïc.
# 3  
Old 01-27-2010
Thanks for the response. the guy who owns the box finally got back to me and i think the problem is that the system is limited to two threads. he said because its a dual proc system it is limited to two threads. not sure if they set it or its just a funcation of the hardware, but i know i wont be getting this changed.

anyone know of a single threaded app to test network speeds that works on solaris and windows? :-/

thanks
# 4  
Old 01-27-2010
strange... You can start normally start hundredths of threads, even if your box has only one CPU available.

Loïc
# 5  
Old 01-27-2010
yeah i know, thats kind of the point of threads Smilie

but, its a production machine and i dont run it. i was just asked to evaluate network speeds/reliability. i dont know solaris at all and i was just told to use iperf..

at the very least i've learned a whole ton of stuff about solaris Smilie

Thanks
# 6  
Old 01-28-2010
Quote:
anyone know of a single threaded app to test network speeds that works on solaris and windows? :-/
I used to use ttcp in the past.. However, I don't remember if the app is single threaded,

HTH,
Loïc
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

fork vs pthread_create

Suppose I have a simple program main() with a global varibale int x=0. int x = 0; main() { print("%d\n",x); } I want to create two threads/process which must access this variable x in sync. Which one will be better threads( pthread_create ) or process( fork )? If I go with fork() then... (1 Reply)
Discussion started by: rupeshkp728
1 Replies

2. UNIX for Dummies Questions & Answers

Pthread_create problem

Hi, I'm trying to do my homework assignment but I am having trouble using the pthread_create fucntion. Here is my code________________ //Alicia Johnson //sum_pid program //creates n number of threads. These threads create a random number //then adds the number to a global array. Then... (1 Reply)
Discussion started by: ajohns38
1 Replies

3. Programming

pthread_create

The prototype for pthread_create function is like this:- int pthread_create(pthread_t *thread,pthread_attr_t *attr,void *(*start routine),void *arg); Q.1 .Why the return type of the start_routine must be void*?? Q.2. Why should we pass arg by converting into void * only ?? Thank You (3 Replies)
Discussion started by: sunil_abhay
3 Replies

4. Programming

undefined reference to `pthread_create'

Hi guys. H was learning posix threads in C with anjuta IDE. it gives me undefined reference to `pthread_create' I know i should compile it like: gcc -lpthread main.c how should i import this configuration in anjuta so i can compile inside it? (2 Replies)
Discussion started by: majid.merkava
2 Replies

5. Programming

How Can I use pthread_create ?

Hi. I use C++ and I wishes to create a thread with the pthread_create function, my question is, how can I do this if I wish that the function will be a member of the class ?? I know from windows programming that I can declare a static function like this static unsigned int __stdcall... (7 Replies)
Discussion started by: shvalb
7 Replies

6. Programming

Pthread_create issue

Hello My problem goes like this: I have used Pthread_create, and I have tryed to create 2 proccess but nothing happens! It does not even matter what the function im trying to create do. It is if im trying to activate an empty function. This is my code. Any help will be highly appreciated.... (1 Reply)
Discussion started by: Hellboy
1 Replies

7. Programming

undefined reference to `pthread_create'

Hi I wanted to learn communication between threads and I used a simple example but I faced with this error while I have a sofware that uses this functions without any problem so would you please help me to know the reason thanks for your help and great favor. #include <pthread.h>... (2 Replies)
Discussion started by: netman
2 Replies

8. Programming

pthread_create and scope usage

I have a problem with a C multi-threaded program I am writing. I cannot figure out how to keep the unique key value at the thread level. I wrote a program in C that forked a bunch of processes and then decided to convert it to threads and I can't keep the key unique to each thread. In a nutshell... (3 Replies)
Discussion started by: jenmead
3 Replies

9. Programming

unresolve pthread_create etc

how to do with that? after cc -o xxxx xxxx.c ld: Unresolved: _pthread_create _pthread_deteach _pthread_exit Thanks (3 Replies)
Discussion started by: zhshqzyc
3 Replies

10. Programming

pthread_create problem

Here is simple code for multithreading in POSIX: void* simplethread(void* arg) { printf("Hello World\n"); } int main(void) { pthread_t id; pthread_create(&id, NULL, simplethread, NULL); return 0; } Whether the new thread will run or not depends on the OS. Tricky ... (5 Replies)
Discussion started by: _rocky
5 Replies
Login or Register to Ask a Question