Friday, October 4, 2013

Array lists


Why suggest a multi-threaded solution?



Hello,


Just as what I said above:one by one thread will take a lot of time because of blocking……But according to what the questioner said, he wanna seperate 100 numbers into 4 groups and then do to process one by one (in order). I still don't know if using One thread why it's needed to do this (In one thread he/she can do together by foreach or for directly to loop the whole array). And I have to give him the way. And what I wanna say to him/her is that threads can process threads together and you can use singal such as AutoEventReset to block the current thread and wait for processing.


To Anoynmous_Parveen:


Another thing you can consider is that using Async method or write it yourself since net framework 4.5+, or just define an event and raise that event in a background thread.




Click For donating:Free Rice For the poor

For spamming-sender issues, you can either report it at Microsoft Spamming Issue , or just find "Report Spam Here+Number" at Forum Issue ;You can also find "Verify Your Account+Number" at "Forum Issue", where you can submit to be confirmed to paste links or images.

For more things to talk about? StackOverFlow is your choice.


No comments:

Post a Comment