How does Shell invoke a process, when an application is executed? If I do not run any command, is any IDLE thread running?
How does Shell invoke a process, when an application is executed? If I do not run any command, is any IDLE thread running?
gr8linux wrote:
How does Shell invoke a process, when an application is executed?
If I do not run any command, is any IDLE thread running?If by IDLE thread, you mean a process pertaining to your shell, then yes. The shell process itself is running. E.g., on my box:
[joeblow@mybox ~]$ ps -fwwu $USER
UID PID PPID C STIME TTY TIME CMD
joeblow 16405 16404 4 00:31 pts/2 00:00:00 -tcsh
joeblow 16422 16405 0 00:31 pts/2 00:00:00 ps -fwwu joeblow
You can also use the tty command to see the filename of the terminal that your shell is using to connect to STDIN:
[joeblow@mybox ~]$ tty
/dev/pts/2
The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.
Join / Linux Training / Board