Active Schedular

Login to reply to this topic.
Wed, 2008-03-05 21:27
Joined: 2007-01-12
Forum posts: 44

Hi,

Each thread has one AS attached with it, does this AS's code run on the same thread or in some other thread.

As User::WaitForAnyRequest() will block the thread, it will not able to do anything until there is some request completion msg. How can it then add another AO in AS??

I am bit confuse here..
Any help will be highly appreciated.


Wed, 2008-03-05 22:59
Joined: 2004-07-17
Forum posts: 110
Re: Active Schedular

"Each thread has one AS attached with it, does this AS's code run on the same thread or in some other thread"

The same thread

"As User::WaitForAnyRequest() will block the thread, it will not able to do anything until there is some request completion msg"

That's the whole idea. The scheduler schedules events, so there's nothing to do if there aren't any events.

Wed, 2008-03-05 23:55
Joined: 2007-09-23
Forum posts: 152
Re: Active Schedular
  • Login to reply to this topic.