From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Structure of the multitasking server
Date: Fri, 13 Mar 2015 18:04:42 -0500
Date: 2015-03-13T18:04:42-05:00 [thread overview]
Message-ID: <mdvqeb$492$1@loke.gir.dk> (raw)
In-Reply-To: c943b1fd-8c0c-4c22-ba8c-fb72fbd52805@googlegroups.com
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 828 bytes --]
<gautier_niouzes@hotmail.com> wrote in message
news:c943b1fd-8c0c-4c22-ba8c-fb72fbd52805@googlegroups.com...
Le vendredi 13 mars 2015 09:14:52 UTC+1, Dmitry A. Kazakov a écrit :
>> You could add a wakeup event to prevent busy waiting. An alternative
>> would
>> be a waitable jobs queue.
>Wouldn't a delay instruction help ?
Of course. A "slow busy wait" is good enough in almost all circumstances
(typically, the machine isn't doing anything important anyway during that
the minimal time used). It certainly beats distorting one's design.
Of course, if there is a queue of jobs anyway, it makes sense to arrange
that to be blocking so you end up waiting on that. But then of course you
need a "stop" job else the supervisor ends up waiting forever.
Randy.
next prev parent reply other threads:[~2015-03-13 23:04 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-19 12:21 Structure of the multitasking server Maciej Sobczak
2008-09-19 13:34 ` Jean-Pierre Rosen
2008-09-19 17:02 ` Dmitry A. Kazakov
2008-09-21 17:30 ` Maciej Sobczak
2008-09-21 19:24 ` Dmitry A. Kazakov
2008-09-21 21:27 ` Maciej Sobczak
2008-09-22 8:12 ` Dmitry A. Kazakov
2008-09-22 12:47 ` Maciej Sobczak
2008-09-22 14:11 ` Dmitry A. Kazakov
2008-09-23 8:07 ` Maciej Sobczak
2008-09-23 9:37 ` Dmitry A. Kazakov
2008-09-23 10:47 ` Jean-Pierre Rosen
2008-09-21 17:23 ` Maciej Sobczak
2008-09-22 8:23 ` Jean-Pierre Rosen
2015-03-12 16:07 ` gautier_niouzes
2015-03-12 21:38 ` Jacob Sparre Andersen
2015-03-12 22:39 ` gautier_niouzes
2015-03-13 8:15 ` Dmitry A. Kazakov
2015-03-13 20:16 ` gautier_niouzes
2015-03-13 20:47 ` Dmitry A. Kazakov
2015-03-15 7:43 ` gautier_niouzes
2015-03-15 8:35 ` Simon Wright
2015-03-15 8:52 ` J-P. Rosen
2015-03-15 9:21 ` Jacob Sparre Andersen
2015-03-15 16:04 ` Brad Moore
2015-03-13 23:04 ` Randy Brukardt [this message]
2015-03-14 8:22 ` Simon Wright
2008-09-19 23:01 ` anon
2008-09-21 17:37 ` Maciej Sobczak
2008-09-22 2:32 ` anon
2008-09-22 13:05 ` Maciej Sobczak
2008-09-23 9:25 ` anon
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox