Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.Net 2.0 Queue Emptying while we are stopped on break point?

Status
Not open for further replies.

Insider1984

Technical User
Feb 15, 2002
132
US
Hi, I have a standard .Net 2.0 queue on one thread that is being populated by another thread. We are in 64-bit and have 4 cores total.

We also have a mutex controlling access to the queue

Unfortunately when I break point in the queue's thread, I can watch the queue's count drop.

1. Shouldn't all my threads be stopped when I breakpoint? And even if so, wouldn't the queue only be increasing?

2. Any thoughts if the garbage collector is coming into play here?

3. Does multiple cores (CPU's) play into this at all?



=====================
Insider
4 year 'on the fly' programmer
C, C++, C#, MFC, Basic, Java ASP.NET
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top