Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
1.25/5 (4 votes)
See more:
Dear sir,


How to use multi-tasking and multi-threaded :

My Task is:

1. Customer's ordered the item in web page,
2. These order items are waiting in Queue like one by one,(same time 100-Orders ordering)
3. How to apply multi-tasking concepts this situation,
4. Please give the way for this?

Thanks in Advance
By Mohan.
Posted

1 solution

You can use Parallel.ForEach()

With this you can add code to fetch from queue, it increase performance and there will be multi-tasking, It also provide greater results if using mutli-CPU
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900