K
K
k0taperkot2014-03-05 11:36:39
linux
k0taperkot, 2014-03-05 11:36:39

Linux - how to create a process without running it?

Hello. I wonder if there is a possibility in Linux to create a process without starting it (run it after doing something with it)? This is, for example, like with threads - you can create and run later. I did not find an answer to this question on the Internet, everywhere there is only a way with fork, and the subsequent suspension of the process.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
v_prom, 2014-03-05
@k0taperkot

The fact is that the process itself is controlled by the OS scheduler and cannot be managed as a thread.
But you can write in the new process a transition to the waiting state and wait for a signal from the main program, after which perform some actions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question