[Lazarus] How does one add an event to a blocking system?

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Wed Oct 21 18:09:48 CEST 2015


Michael Schnell wrote:
> On 10/21/2015 04:19 PM, Mark Morgan Lloyd wrote:
>>
>> I don't know whether I've overlooked anything significant there, but 
>> it appears robust and activity triggered by around half a dozen 
>> background threads appears as expected.
> 
> Of course it's robust.

But my use of it might not have been.

> But check the CPU usage. It it's 100% all threads get just time slices- 
> If it's just one other thread, same will never get more than 50 %.
> 
> If it's not 100% the system is waiting somewhere else in a sleep, a 
> blocking read or similar.

CPU usage depends on what the hardware I'm emulating is doing :-)

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list