-
September 15th, 2014, 10:00 AM
#1
Using semaphore with task
We know that semaphore limits the number of threads that can access a resource or pool of resources concurrently.
For this example at http://msdn.microsoft.com/en-us/libr...v=vs.110).aspx
It uses threads, my question is if we replace threads with tasks, can we still use semaphore?
-
September 15th, 2014, 05:11 PM
#2
Re: Using semaphore with task
Yes, as semaphores aren't tied to threads.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|