General Question

linuxgnuru's avatar

What do programs do when they are Stopped in Unix / Linux?

Asked by linuxgnuru (207points) June 14th, 2010

I’ve been using Linux since 1995 and I have a little knowledge about processes and the lot; My question is, if you suspend (^Z) a process, I know it is given the STOP message but then what; does it just wait indefinitely until you do something else or does it all depend on the internal coding of the particular program i.e. does the program have to handle the STOP for memory management, etc?

Observing members: 0 Composing members: 0

1 Answer

DrBill's avatar

It waits in memory, internal coding has no effect as the ^Z is a system command and pauses the program where it is. There is no memory management as the program and all variables stay in memory.

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther