[Lazarus] Threads in Lazarus code base

Graeme Geldenhuys graemeg.lists at gmail.com
Sun Sep 19 11:45:25 CEST 2010


On 19 September 2010 01:33, Andrew Brunner  wrote:
> On Sat, Sep 18, 2010 at 5:17 PM, Marco van de Voort  wrote:
>> Well, one pain less. Delphi deprecated suspending/resuming of threads.
>
> Sometimes you have to ask what where they thinking?

If you understand the possible problems, it is rather a question of:
"Why did they take so long to deprecate the flaw".  Imagine your
thread has locked a major resource, now you suspend that thread. A
instant deadlock occurs because that thread will never release that
resource.

This Java website explains the problem rather well.
http://download.oracle.com/javase/1.4.2/docs/guide/misc/threadPrimitiveDeprecation.html


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/




More information about the Lazarus mailing list