Mon, 12 Jun 2000 20:12:16 +0100, Claus Reinke <[EMAIL PROTECTED]> pisze:

> 1. A thread is either resource-aware or abstracts away the details
>     and difficulties of resource management.
> 2. If resource availablity is high, both kinds of threads can allocate
>     (in case of memory: implicitly, as usual in functional programs).
> 3. If resource availability is low,
>     - resource-aware threads receive an asynchronous exception, 
>        but may then proceed to allocate as before 
>        (until the resource is actually exhausted)
>     - resource-unaware threads block on allocation attempts
> 
> That's it! Not that complicated, is it?

Looks not bad.

Which resource-aware threads will receive the exeption?

How a handler thread can ensure that it has freed enough memory to
unblock threads that are blocked, or that to get an exception again
instead of reaching a hard limit and crashing?

-- 
 __("<    Marcin Kowalczyk * [EMAIL PROTECTED] http://qrczak.ids.net.pl/
 \__/              GCS/M d- s+:-- a23 C+++$ UL++>++++$ P+++ L++>++++$ E-
  ^^                  W++ N+++ o? K? w(---) O? M- V? PS-- PE++ Y? PGP+ t
QRCZAK                  5? X- R tv-- b+>++ DI D- G+ e>++++ h! r--%>++ y-


Reply via email to