1826677 Members
2628 Online
109696 Solutions
New Discussion

Thread usage

 
SOLVED
Go to solution
Benedetto Mangiapane
Frequent Advisor

Thread usage

Hi,
is it possible to view or check the method or signature which allocated a specific thread on HP-UX 11.10?

I've a process that use up to 450 threads, but a month ago it used half (170-250).

Is it possible that a system call, that create a thread, use a multiple thread instance?

Thanks.
4 REPLIES 4
Laurent Menase
Honored Contributor

Re: Thread usage

Hi,
What do you mean about check the method?
Do you mean user level thread (mx1 or unbound) or kernel thread (1x1 bound threads)?
If you are using hpux 11.11 check if it is linked with libpthread ( with ldd or chatr).

If you have threads it means that they have been created one pthread_create ( which is a lib call and not a syscall) creates only 1 thread.
There are some 3rd party math libs which are using threads.

Else the tool which can be used to see what syscall is using is "tusc"

Benedetto Mangiapane
Frequent Advisor

Re: Thread usage

Let me explain better (maybe).

I use a framework TCSI OSP Core Solution, that provide a library for multi-threading processes. Every synchronous method (proxy) create a thread.

There are many syncronous method, and I must verify which method was called (that create a thread).

A month ago, the threads were 170-240, but now have 434!

Not familiar with the mechanism for releasing and acquiring of thread, and I do not understand what can depend.

Can I use tusc to filter a proxy call that create a thread?

Thanks.
Laurent Menase
Honored Contributor
Solution

Re: Thread usage


Can I use tusc to filter a proxy call that create a thread?
With tusc you can only see syscalls, so thread creation, cancelation, jointure for instance. But you cannot link that directly to your library methodes.

The only ways would be to instrument the code
Dennis Handly
Acclaimed Contributor

Re: Thread usage

>Laurent: The only ways would be to instrument the code

wdb has some new thread debugging features on newer versions:
http://www.hp.com/go/wdb