get Thread information from process

Hello all
im trying to build small script in tcsh that will monitor some process
that are making some api calles to some server .
first of all im trying to find way to see how many threads each process is using , and else how can i print each
Thread id .
can it be done ? ( using sunOs )

ok i found out that :
ps -ef -o "args lwp" | grep "MyProcess" will give me number of Threads
but it scans me all the mechine , how can i scan only my account ?

ps -efu myAccount -o "args lwp" | grep "MyProcess"

do not work

Try:

ps -fu `whoami`

Regards