Click here to Skip to main content
15,890,995 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# and Microsoft OutLook Express 6.0 Pin
rakesh_aravindrsa19-May-09 18:38
rakesh_aravindrsa19-May-09 18:38 
GeneralRe: C# and Microsoft OutLook Express 6.0 Pin
Mycroft Holmes19-May-09 19:07
professionalMycroft Holmes19-May-09 19:07 
GeneralRe: C# and Microsoft OutLook Express 6.0 Pin
Roger Wright19-May-09 22:04
professionalRoger Wright19-May-09 22:04 
GeneralRe: C# and Microsoft OutLook Express 6.0 Pin
Mycroft Holmes19-May-09 23:15
professionalMycroft Holmes19-May-09 23:15 
GeneralRe: C# and Microsoft OutLook Express 6.0 Pin
Luc Pattyn20-May-09 2:49
sitebuilderLuc Pattyn20-May-09 2:49 
QuestionGeocoding Pin
shraddha IT19-May-09 18:06
shraddha IT19-May-09 18:06 
AnswerRe: Geocoding Pin
Dave Kreskowiak20-May-09 2:11
mveDave Kreskowiak20-May-09 2:11 
QuestionMultithreading is faster? Pin
Quake2Player19-May-09 17:53
Quake2Player19-May-09 17:53 
Lets say you have to do 4 things,
void f1()
void f2()
void f3()
void f4()

Alt 1: Run them like this
f1(); f2(); f3(); f4();

Alt 2: Run them each one with a separate thread
Thread t1 = new Thread (f1); t1.Start();
Thread t2 = new Thread (f2); t2.Start();
Thread t3 = new Thread (f3); t3.Start();
Thread t4 = new Thread (f4); t4.Start();

(the functions just read resources, they dont write, so dont worry about threading sync)

Alt 2 should take less time than Alt 1???

I tried to test this but I'm doubting of the results because at the beginning I had one result (threading is faster) and then anoter (same times)

Logically thinking.. the threading solution shouldnt be faster because in reality they arent running at the same time.. they are being switched ( thats why there is only 1 CurrentThread when one calls Thread.CurrentThread static method )

Please help.
AnswerRe: Multithreading is faster? Pin
mav.northwind19-May-09 18:43
mav.northwind19-May-09 18:43 
AnswerRe: Multithreading is faster? Pin
Luis Alonso Ramos19-May-09 18:52
Luis Alonso Ramos19-May-09 18:52 
AnswerRe: Multithreading is faster? Pin
Dave Kreskowiak20-May-09 2:14
mveDave Kreskowiak20-May-09 2:14 
AnswerRe: Multithreading is faster? Pin
Luc Pattyn20-May-09 2:58
sitebuilderLuc Pattyn20-May-09 2:58 
GeneralRe: Multithreading is faster? Pin
Quake2Player20-May-09 3:12
Quake2Player20-May-09 3:12 
GeneralRe: Multithreading is faster? Pin
Luc Pattyn20-May-09 3:40
sitebuilderLuc Pattyn20-May-09 3:40 
QuestionButtons appear differently in Vista than in XP (problem) Pin
sodevrom19-May-09 14:54
sodevrom19-May-09 14:54 
AnswerRe: Buttons appear differently in Vista than in XP (problem) Pin
Luis Alonso Ramos19-May-09 18:54
Luis Alonso Ramos19-May-09 18:54 
AnswerRe: Buttons appear differently in Vista than in XP (problem) Pin
saanj19-May-09 19:24
saanj19-May-09 19:24 
GeneralRe: Buttons appear differently in Vista than in XP (problem) Pin
sodevrom20-May-09 5:27
sodevrom20-May-09 5:27 
Questiondatagridview getting values Pin
sakis2419-May-09 13:21
sakis2419-May-09 13:21 
AnswerRe: datagridview getting values [modified] Pin
Christian Graus19-May-09 13:31
protectorChristian Graus19-May-09 13:31 
GeneralRe: datagridview getting values Pin
sakis2419-May-09 13:56
sakis2419-May-09 13:56 
GeneralRe: datagridview getting values Pin
sakis2419-May-09 14:21
sakis2419-May-09 14:21 
GeneralRe: datagridview getting values Pin
Mycroft Holmes19-May-09 14:34
professionalMycroft Holmes19-May-09 14:34 
GeneralRe: datagridview getting values Pin
sakis2419-May-09 14:50
sakis2419-May-09 14:50 
GeneralRe: datagridview getting values Pin
Mycroft Holmes19-May-09 15:38
professionalMycroft Holmes19-May-09 15:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.