Re: question about SYSINTR_RESCHED and scheduler



Hi Dean,
thanks for your explanation. I have another question concerning this topic,
suppose that I have three thread, two of them running in kernel process, and
one of them running in user application process, and the one running in
user application process is resumed, will scheduler put this thread into
running in case of rescheduling?
regards,
Zhiqiang

"Dean Ramsier" <ramsiernospam@xxxxxxxxxx> schrieb im Newsbeitrag
news:Oy3w$smYHHA.3520@xxxxxxxxxxxxxxxxxxxxxxx
SYSINTR_RESCHED has nothing to do with suspended threads. It is your
responsibility to resume a suspended thread using a call to ResumeThread
whenever it is appropriate for your application.

SYSINTR_RESCHED just means it's time for the kernel to schedule the next
thread that is in line for execution. A suspended thread is not in line
for execution.

--
Dean Ramsier - eMVP
BSQUARE Corporation


"Zhiqiang Li" <zhiqiang.li@xxxxxxxxxx> wrote in message
news:OYh5yfmYHHA.3824@xxxxxxxxxxxxxxxxxxxxxxx
Dear All,
I have a question about SYSINTR_RESCHED and scheduler,
As I know SYSINTR_RESCHED is returned by ISR to indicate a reschedule,
but what will scheduler do in case of rescheduling? (Suppose that I have
created three threads, and all of them are created in suspended state,
and I am afraid none of them will be awaked by the scheduler. Right? If
so, I need another SYSINTR_ to triggered the event.)

thanks
to suspended state





.



Relevant Pages

  • Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
    ... With rescheduling there are _too_ many things to ... request in the future too]'. ... I did not run reschedulingtests with kernel thread, ... We do user-space register saving not in the scheduler ...
    (Linux-Kernel)
  • Re: Blocking read() policy?
    ... and the rescheduling check ... In 2.6.9 a call to the scheduler is ... may call the scheduler on return to user mode, ... > Linux' responsiveness has improved substantially. ...
    (comp.os.linux.development.system)
  • Re: question about SYSINTR_RESCHED and scheduler
    ... responsibility to resume a suspended thread using a call to ResumeThread ... I have a question about SYSINTR_RESCHED and scheduler, ... As I know SYSINTR_RESCHED is returned by ISR to indicate a reschedule, ... created three threads, and all of them are created in suspended state, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Blocking read() policy?
    ... > to the scheduler that too many null returns should cause ... > rescheduling in spite of O_NONBLOCK. ... very hard to avoid. ...
    (comp.os.linux.development.system)