Hi All,
I've a doubt regarding performance improvement in multithreading. Lets assume I have to execute 100 tasks(Each one will take equal time to execute) and there is no database dependence or there is no need to wait for anything, for each of these tasks.
In this case,lets assume I've 10 threads which are executing these 100 tasks.what performance improvement can I get by using multithreading, instead of using single threading and executing my tasks one by one.
Because as far as I know, even in case of multithreading only one
thread can execute at a time (My machine has a single processor). so even in multithreading, all threads will follow some kind of time slicing mechanisms. So I feel that the total time to execuete all the 100 tasks by using Single threading or multithreading is the same. Am I correct (or) I didn't understand something about multithreading regarding performance improvement? Please reply.
Thanks in Advance,
VarunJ