Re: TThreadComp: is it safe to call HALT(rc) in its OnTerminate ?
Hallo IvankoB,
Du schriebst am Mon, 23 Jul 2012 17:02:02 +0500:
> PS: Since me still can't get proper threading mechanics, Me have dead
> lock in my application.
Did you make sure that all ressources are reserved strictly in the sme
order everywhere they're used? Requesting ressources in varying order is a
sure method to create deadlocks:
A: request Ra, request Rb
B: request Rb, request Ra
If the order of processing is A:Ra, B:Rb, then you have it.
Try it with B reqesting the other way, and see if you can create a deadlock
that way. Then you can proceed to more complex scenarios.
--
--
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
-----------------------------------------------------------
Mit freundlichen Grüßen, S. Schicktanz
-----------------------------------------------------------
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
(Continue reading)