[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: ANN: Lua OS 0.4
- From: HyperHacker <hyperhacker@...>
- Date: Thu, 18 Aug 2011 17:36:31 -0600
On Thu, Aug 18, 2011 at 17:33, Stefan Reich
> On Thu, Aug 18, 2011 at 11:47 PM, HyperHacker <email@example.com> wrote:
>> I think the term you want is "critical section". A thread can ask that
>> it not be interrupted until it finishes some task (delimited by calls
>> to EnterCriticalSection and LeaveCriticalSection or similar). Of
>> course then you have to figure out what to do if a thread gets into an
>> endless loop in that section...
> The OS functions will not produce endless loops. We just program them
> properly. :)
Right, but what if I do:
while true do end
Sent from my toaster.