List Info

Thread: Re: Thread implementation issue




Re: Thread implementation issue
country flaguser name
United States
2008-03-28 11:40:48
On Fri, 28 Mar 2008 10:58:05 -0400, Peter Osucha
<PeterPROTEINDISCOVERY.COM> 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


Re: Thread implementation issue
country flaguser name
United States
2008-03-28 13:30:02
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:ADVANCED-DOTNETDISCUSS.DEVELOP.COM] On Behalf Of Per
Bolmstedt
Sent: Friday, March 28, 2008 12:41 PM
To: ADVANCED-DOTNETDISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] Thread implementation issue

On Fri, 28 Mar 2008 10:58:05 -0400, Peter Osucha
<PeterPROTEINDISCOVERY.COM> 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


Re: Thread implementation issue
country flaguser name
United States
2008-03-28 13:30:02
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:ADVANCED-DOTNETDISCUSS.DEVELOP.COM] On Behalf Of Per
Bolmstedt
Sent: Friday, March 28, 2008 12:41 PM
To: ADVANCED-DOTNETDISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] Thread implementation issue

On Fri, 28 Mar 2008 10:58:05 -0400, Peter Osucha
<PeterPROTEINDISCOVERY.COM> 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


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )