General
cancel
Showing results for 
Search instead for 
Did you mean: 

what does wait reason for a thread means

jerish sunny
Occasional Advisor

what does wait reason for a thread means

the wait reason for thread is mentioned as STRMS.
what does that mean
2 REPLIES
Matti_Kurkela
Honored Contributor

Re: what does wait reason for a thread means

The process is waiting for a streams Input/Output operation to complete. This can mean many things.

The simplest case is that the process has displayed a prompt on the terminal and is waiting for the user to type in something. This would be waiting on stdin, or STandarD INput stream.

Network connections can also be streams: if the thread is sending or receiving a lot of network traffic and it goes to STRMS wait state often, it might indicate a network bottleneck.

There are many other stream I/O operations. To analyze this further, you would need to know what the thread is supposed to be doing, and then think about why that operation might need to wait.

MK
MK
Hakki Aydin Ucar
Honored Contributor

Re: what does wait reason for a thread means

Hi

if any program process need a little bit time to complete before next line in program the "wait" is useful control command.
For an example; you wrote a program and it should write to a file and then need initialize again by >/tmp/your_file , in such a condition you musat put a wiat control between clauses.