BorCon 2003: Threading Session Follow Up

In my threading session at BorCon, a member of the audience asked how you could prevent the CLR from suspending threads durring garbage collection in .NET. Well, I finally had the time to do some research on this subject so here is the answer to this question.

The short answer is: you cannot prevent the CLR from suspending managed threads in .NET. However, if your managed thread is running in unmanaged mode, the CLR will allow the thread to continue, since any object references are pinned (locked down). When the thread returns to managed code, the CLR will suspend the thread. Detailed information on this algorithm is available from Jeffrey Richter’s Applied Microsoft .NET Framework Programming.

Posted in .NET, Delphi | Leave a comment

BorCon 2003: Papers Posted

I have posted two of the four papers that I wrote for BorCon 2003.

The Linux for Windows Developers (Source Code) paper has updated content from last years BorCon which demonstrates the steps involved in porting a VCL application to Linux. The SlideShow application loops through all JPEGs in a given directory, maximizing the size and allowing for pausing between pictures

Writing Distributed .NET Applications (Source Code) demonstrates how to write Distributed Delphi 8 applications. In addition to introducing .NET Remoting, I’ve written a distributed prime number application that hands off work to one or more clients.

Enjoy!

Posted in Delphi | Leave a comment