Re: What's the meaning of a stopped process

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2010/8/25 Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx>:
> Hi :)
>
> On Wed, Aug 25, 2010 at 00:11, Parmenides <mobile.parmenides@xxxxxxxxx> wrote:
>> AFAIK, there is no a status which indicates a process paused. How does
>> kernel deal with a paused process? Or, any other ways to implement a
>> paused process?
>>
>
> Please don't do top posting :)

I am so sorry to do that owing to not getting some net etiquettes.
Just now, I have gooled the "top posting" item and learn some
disadvantages about it. :-)

>
> Status? Uhm..have you check top or ps? in ps, IIRC, it's marked as "T"

Correct, I have checked it.

>
>
> How does the kernel deal with stopped one? Not sure what you mean
> here.... you mean how to kick them out of scheduler? simple, at the
> earliest moment.....either they're going to be scheduled out....or
> returning from interrupt handler etc, they're brought out of running
> run queue into another (separate) queue.
>
> When you SIGCONT them, it will be brought into runqueue and marked as
> "ready to run" :)

Oh, The status of TASK_STOPPED is neglected by me. BTW, when stopped
by a signal SIGTSTP caused by ^Z, whether a foreground process is ment
to relinquish the controlling terminal? If so, how to do that?
Moreover, how does the process grasp the terminal  when going to
foregound again?

>
> --
> regards,
>
> Mulyadi Santosa
> Freelance Linux trainer and consultant
>
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com
>

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux