Processors
Intel® Processors, Tools, and Utilities
14514 Discussions

Can two or more process(not thread) run at particular moment of time in multi core processor?

idata
Employee
1,360 Views

In multi core processor like intel core i3 we have 2 physical core in the same silicon die that means two physical CPU. So two thread of same process can run simultaneously at particular moment of time. But my question is that can two process/program( not thread) run in two different core at particular instance of time?

0 Kudos
2 Replies
RAJU2529
New Contributor III
474 Views

not possible on client motherboard , but possible in server motherboards , we can install two physical processors on same board

0 Kudos
ZPett
Novice
474 Views

You asked: But my question is that can two process/program( not thread) run in two different core at particular instance of time?

Answer: Yes

In a parallel python program I have achieved running 1 process per core. You can view my code here: https://github.com/zach010/PrimeOptimus

The way a multi cored CPU works with programs "as far as I know with Python" is that single process' cannot utilize more than one core unless you split the program into multiple processes and run them in parallel because of the global python-interpreter lock that resolves ram-memory corruption issues. If one were to write a program in python without utilizing the multiprocessing module, it would only run on one core and the rest of your CPU's cores would sit unused. Your question: can two process/program( not thread) run in two different core at particular instance of time? ANSWER: YES. A good OS will distribute different programs with different requirements of loads to different cores if a certain core is already fully loaded. To see for yourself (on Windows) open a task manager and select the performance tab and right-click the graph to view individual core/logical processors in separate graphs. Open a single program and watch, then open more than one and it will show more activity across more cores.

0 Kudos
Reply