Click here to Skip to main content
15,921,716 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: How to get WindowsIdentity from domain\ username without password? Pin
Doan Quynh21-Dec-08 19:49
Doan Quynh21-Dec-08 19:49 
Questionvb,net buttons Pin
chathini18-Dec-08 20:35
chathini18-Dec-08 20:35 
AnswerRe: vb,net buttons Pin
Thulasee Shan19-Dec-08 0:54
Thulasee Shan19-Dec-08 0:54 
QuestionVB6.0 to VB.NET Pin
sntkn18-Dec-08 20:11
sntkn18-Dec-08 20:11 
AnswerRe: VB6.0 to VB.NET Pin
Oshtri Deka18-Dec-08 21:13
professionalOshtri Deka18-Dec-08 21:13 
AnswerRe: VB6.0 to VB.NET Pin
Dragonfly_Lee24-Dec-08 19:01
Dragonfly_Lee24-Dec-08 19:01 
NewsFree Help from Microsoft for Your Windows Client Applications Pin
brucedkyle18-Dec-08 19:03
brucedkyle18-Dec-08 19:03 
QuestionThreadPool not executing queued jobs Pin
Helfdane18-Dec-08 3:14
Helfdane18-Dec-08 3:14 
Hi,

I'm working on a calculation module which handles a lot of small calculations. A sqeuencial approach is not feasible due to the amount of calculations (the biggest batch is approximately 15 million calculations) and my initial run projected 83 days in the worst case scenario. This is too long.

Since the threadpool is described as a good solution for many short calculations, I decided to give it a try. My implementation works on a small scale (15k calculations) and performs acceptable given 40 threads (dual-core, so max ideal number is max 50 according to the msdn documentation, but then the system threads are starving and timers run out of sync and GC freezes).

My only problem is, when I feed my small jobs to the queue, it fills the first batch of empty threads and then continues queuing, but *not* executing the jobs which are queued for processing. At a certain point, on the small scale, it has completed queuing, and *then* it starts processing the requests very fast. This is not sustainable, since when filling the queue, the system slowly grinds to a halt queuing slower per job.

To get an idea of a run: one calculation costs 25-500ms to complete, around 15 calculations per context, and about 1 million contexts to be processed per run.

Anyone can help me find an answer why the threadpool continues to queue but not process the queued jobs until the queuing is complete? Thanks in advance.

The consumer isn't a moron; she is your wife.

AnswerRe: ThreadPool not executing queued jobs Pin
led mike18-Dec-08 7:05
led mike18-Dec-08 7:05 
GeneralRe: ThreadPool not executing queued jobs Pin
Helfdane18-Dec-08 21:53
Helfdane18-Dec-08 21:53 
GeneralRe: ThreadPool not executing queued jobs Pin
led mike19-Dec-08 7:15
led mike19-Dec-08 7:15 
GeneralRe: ThreadPool not executing queued jobs Pin
Helfdane21-Dec-08 23:27
Helfdane21-Dec-08 23:27 
AnswerRe: ThreadPool not executing queued jobs Pin
Dave Kreskowiak18-Dec-08 8:21
mveDave Kreskowiak18-Dec-08 8:21 
GeneralRe: ThreadPool not executing queued jobs Pin
led mike18-Dec-08 8:35
led mike18-Dec-08 8:35 
GeneralRe: ThreadPool not executing queued jobs Pin
Dave Kreskowiak18-Dec-08 9:03
mveDave Kreskowiak18-Dec-08 9:03 
GeneralRe: ThreadPool not executing queued jobs Pin
led mike18-Dec-08 9:05
led mike18-Dec-08 9:05 
QuestionRoaming AND local settings ? Pin
koosquarto17-Dec-08 23:23
koosquarto17-Dec-08 23:23 
Questionwinsock error 10014 Plz help Pin
abhiabstract16-Dec-08 14:22
abhiabstract16-Dec-08 14:22 
AnswerRe: winsock error 10014 Plz help Pin
Dave Kreskowiak16-Dec-08 17:35
mveDave Kreskowiak16-Dec-08 17:35 
AnswerRe: winsock error 10014 Plz help Pin
Paul Conrad17-Dec-08 5:31
professionalPaul Conrad17-Dec-08 5:31 
QuestionCS file invocation at the end of task? Pin
NetQuestions16-Dec-08 6:52
NetQuestions16-Dec-08 6:52 
AnswerRe: CS file invocation at the end of task? Pin
Dave Kreskowiak16-Dec-08 8:58
mveDave Kreskowiak16-Dec-08 8:58 
QuestionFree or opensource versioning tool for Visual Studio 2008 Pin
Azghar Hussain16-Dec-08 3:20
professionalAzghar Hussain16-Dec-08 3:20 
AnswerRe: Free or opensource versioning tool for Visual Studio 2008 Pin
AndrewSmith16-Dec-08 6:10
AndrewSmith16-Dec-08 6:10 
GeneralRe: Free or opensource versioning tool for Visual Studio 2008 Pin
Azghar Hussain16-Dec-08 17:23
professionalAzghar Hussain16-Dec-08 17:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.