patchDotGNU Portable.NET - Patches: patch #3114, Minimize number of started threads...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

patch #3114: Minimize number of started threads to process completion units

Submitted by:  David Logan <djlogan>
Submitted on:  Tue 01 Jun 2004 06:05:27 PM UTC  
 
Category: NonePriority: 3 - Low
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open

Wed 02 Jun 2004 10:45:19 AM UTC, comment #2:

Submitting patch that does not throw an exception, but instead leaves the completion unit in the queue and pulses the lock object if there are any waiting threads. (On the condition when we have "maxcompletionthreads" completion threads.)

David Logan <djlogan>
Wed 02 Jun 2004 01:58:45 AM UTC, comment #1:

Instead of throwing an exception if there are two many requests, can you please queue the request and block until a thread is free.

Thanks.

Thong Nguyen <tum>
Project Member
Tue 01 Jun 2004 06:05:27 PM UTC, original submission:

This patch actually works! It even solves the race problem between the completion thread loop and the addcompletionitem. It will now only start the minimum number of threads to handle however many simultaneous completion units need to be processed. If this number exceeds the maximum number of threads, it will throw a SystemException.

David Logan <djlogan>

 

Attached Files
file #7527:  root-040602.patch added by djlogan (4kB - application/octet-stream - Patch without the exception)
file #7525:  root-040601.patch added by djlogan (4kB - application/octet-stream - Patch to ThreadPool.cs to minimize the number of started completion threads)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 02 Jun 2004 10:45:19 AM UTCdjloganAttached File-=>Added root-040602.patch, #3334
Tue 01 Jun 2004 06:05:28 PM UTCdjloganAttached File-=>Added root-040601.patch, #3332

Back to the top


Powered by Savane 3.1-cleanup