Again, thanks for all the comments. This 'Blinker' thing was mainly done as a way for me to play with some threading things. The implementation of the producer/consumer queue is something I'll be working on over the weekend (so you guys can expect some questions on Monday! :-))
Peter -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Per Bolmstedt Sent: Friday, March 28, 2008 12:41 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] Thread implementation issue On Fri, 28 Mar 2008 10:58:05 -0400, Peter Osucha <[EMAIL PROTECTED]> wrote: > In working on implementing the Producer/Consumer queue from comments > earlier this week, [...] Actually, there's no need for sleeping threads in a producer/consumer queue, so I'd say your Blinker is something else, like an old-school "polling" mechanism. Check this, for example: http://www.yoda.arachsys.com/csharp/threads/deadlocks.shtml I'd remove the sleeping from the code and work my way toward a more elegant producer/consumer solution, using the feedback you've gotten so far. =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com