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 Jun 1 18:05:27 2004  
Category: NonePriority: 3 - Low
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open

Wed Jun 2 10:45:19 2004, 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 Jun 2 01:58:45 2004, 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.


Thong Nguyen <tum>
Project Member
Tue Jun 1 18:05:27 2004, 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 Jun 2 10:45:19 2004djloganAttached File-=>Added root-040602.patch, #3334
Tue Jun 1 18:05:28 2004djloganAttached File-=>Added root-040601.patch, #3332

Back to the top

Powered by Savane 3.1-cleanup1