Overclock.net › Forums › General Hardware › General Processor Discussions › simple explanation about multithreading
New Posts  All Forums:Forum Nav:

simple explanation about multithreading

post #1 of 3
Thread Starter 
I'm often seeing question about core,thread performance. I want to offer a simple explanation to anyone wondering about multithreading.

A cpu core/thread is like a worker and the software you run is like a job to do.

If you ask 4 worker to fold 200 letter, each worker will fold 50 letter right?

And if you ask 1 worker to fold 200 letter, he wild fold 200 letter.
So in this case, it will be 400% faster to use 4 worker.

But let's take a different example.

You ask 4 worker to clean a really small bathroom. 1 worker will clean the bathroom and the rest of them will do nothing except watching. In this case, 1 worker will be as effective as 4 worker.

Always ask yourself/do research about the software you're using and multithreading. You will make better decision about which kind of cpu you need to buy.
    
CPUMotherboardGraphicsRAM
i5-3570K @ 4.3ghz / 1.17v Z77MA-G45 EVGA GTX 1080 SC 16GB Kingston HyperX 1866@2133mhz 
Hard DriveHard DriveOSMonitor
Samsung 850 Evo Seagate Barracude 12.7200 Windows 10 Pro LG OLED55B6P 
KeyboardPowerCaseMouse
Corsair K70 Mechanical mx-brown Corsair TX550M  Corsair 200r Razer Deathadder 1600dpi 
Audio
Denon 7.1 DTS-HD with Energy Speaker and Velody... 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
i5-3570K @ 4.3ghz / 1.17v Z77MA-G45 EVGA GTX 1080 SC 16GB Kingston HyperX 1866@2133mhz 
Hard DriveHard DriveOSMonitor
Samsung 850 Evo Seagate Barracude 12.7200 Windows 10 Pro LG OLED55B6P 
KeyboardPowerCaseMouse
Corsair K70 Mechanical mx-brown Corsair TX550M  Corsair 200r Razer Deathadder 1600dpi 
Audio
Denon 7.1 DTS-HD with Energy Speaker and Velody... 
  hide details  
Reply
post #2 of 3
Pretty much but most importantly, it is all up to the code.

For example, let's say that folding a letter is completely dependent on the results of folding the previous letter. At that case, multi-threading is pointless because you essentially can only fold one letter at a time.

If the folding of every letter is completely independent of each other, then you could theoretically split the work up to as many threads as you have. But still, it is up to the code, which is where you see issues with games only being programmed to take advantage of 2-3 cores/threads.


I don't know about this statement though
Quote:
You ask 4 worker to clean a really small bathroom. 1 worker will clean the bathroom and the rest of them will do nothing except watching. In this case, 1 worker will be as effective as 4 worker.

1 worker(cpu) will always be as effective as one worker(cpu).
I Love Cheese
(13 items)
 
  
CPUMotherboardGraphicsRAM
2600k @ 3.4 Asus P8P67 Basic XFX 5970 2 gig Black Edition 2x 4 gig DDR 1600 G-Skill 
Hard DriveOSMonitorPower
2x500 gig WD Vista Ultimate 64-bit Dual 25" Hannspree LCD CM 750 Watt 
CaseMouse
Rosewill THOR Logitech Trackball 
  hide details  
Reply
I Love Cheese
(13 items)
 
  
CPUMotherboardGraphicsRAM
2600k @ 3.4 Asus P8P67 Basic XFX 5970 2 gig Black Edition 2x 4 gig DDR 1600 G-Skill 
Hard DriveOSMonitorPower
2x500 gig WD Vista Ultimate 64-bit Dual 25" Hannspree LCD CM 750 Watt 
CaseMouse
Rosewill THOR Logitech Trackball 
  hide details  
Reply
post #3 of 3
Quote:
Originally Posted by joemaniaci;13391090 

I don't know about this statement though


1 worker(cpu) will always be as effective as one worker(cpu).

I think he's meaning 1 worker has the same effect as 4 workers, because in the end, the bathroom is only ever going to make use of 1 worker, no matter how many workers you have. (Not 1 worker has the equivelent performance of 4 workers, because that's just silly. tongue.gif)
Dolans Mate
(15 items)
 
  
CPUMotherboardGraphicsRAM
Intel i5 760 Gigabyte P55A-UD3 Gainward GTX 560Ti Mushkin Radioactive (4GB) 
Hard DriveCoolingOSMonitor
160GB Seagate x 2 Cooler Master Hyper 212 EVO Windows 7 Ultimate 64-bit LG LED Flatron E2250V x 2 
KeyboardPowerCaseMouse Pad
Das Keyboard Utimate S  Silverstone Strider 500w NZXT Guardian 921 Razer Goliathus Fragged Alpha 
Audio
Logitech X-540s 
  hide details  
Reply
Dolans Mate
(15 items)
 
  
CPUMotherboardGraphicsRAM
Intel i5 760 Gigabyte P55A-UD3 Gainward GTX 560Ti Mushkin Radioactive (4GB) 
Hard DriveCoolingOSMonitor
160GB Seagate x 2 Cooler Master Hyper 212 EVO Windows 7 Ultimate 64-bit LG LED Flatron E2250V x 2 
KeyboardPowerCaseMouse Pad
Das Keyboard Utimate S  Silverstone Strider 500w NZXT Guardian 921 Razer Goliathus Fragged Alpha 
Audio
Logitech X-540s 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: General Processor Discussions
Overclock.net › Forums › General Hardware › General Processor Discussions › simple explanation about multithreading