[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Threads and asyncs
From: |
Marius Vollmer |
Subject: |
Re: Threads and asyncs |
Date: |
03 Sep 2002 01:51:49 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Tom Lord <address@hidden> writes:
> > Is there no use for thread-independent system-asyncs?
>
> I can't think of any, right now.
>
> Any short computation that needs to be invoked asynchronously (say,
> perhaps, driven by a timer) is a candidate. One can imagine efficient
> I/O working this way, for example; or simple animation of some sort in
> a GUI.
Hmm, I'd like to see these as thread-independent sources of async
activation, not as thread-independent asyncs. A timer could be
configured to mark a particular async to run in whatever thread is
current when the timer goes off. Likewise when I/O becomes possible.
Compared to thread-independent asyncs, you will only notice a
difference when there is a thread switch between the time an async is
marked and the original thread next checks for asyncs. If that ever
becomes a problem, we can make a thread check its asyncs before
switching away from the CPU.
--
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405
- Threads and asyncs, Marius Vollmer, 2002/09/02
- Re: Threads and asyncs, Tom Lord, 2002/09/02
- Re: Threads and asyncs, Rob Browning, 2002/09/02
- Re: Threads and asyncs, Tom Lord, 2002/09/02
- Re: Threads and asyncs, Tom Lord, 2002/09/02
- Re: Threads and asyncs, Lynn Winebarger, 2002/09/02
- Re: Threads and asyncs, Tom Lord, 2002/09/02
- Re: Threads and asyncs, Thomas Bushnell, BSG, 2002/09/02
- Re: Threads and asyncs, Tom Lord, 2002/09/02
- Re: Threads and asyncs, Tom Lord, 2002/09/02
- Re: Threads and asyncs, Thomas Bushnell, BSG, 2002/09/02
- Re: Threads and asyncs, Tom Lord, 2002/09/02