yushakuAugust 17, 2023
Before we jump to this we need to understand what is a program?
Example
The different tab that we open in chrome is a process.
in a web browser, each tab can be considered a process, and each tab can have multiple threads running within it. One thread might be responsible for rendering the web page, while another thread might handle user input.
These process runs on CPU through context switching, once one process is switched out of the CPU so another process can run.
A core processor refers to a computer processor that contains multiple independent processing units, called cores. These cores are capable of handling multiple tasks and processes at the same time, which can result in faster and more efficient computer performance. This is opposed to single-core processors, which can only handle one task or process at a time. The more number of cores you have the faster Processing you get.
For example, suppose a user is running a video editing program on their computer. The program is a process that has multiple threads running simultaneously. Some threads might be responsible for rendering video, while others might be handling user input.
When the operating system schedules the video editing program to run, it assigns the process and its threads to one or more available cores in the CPU. By assigning multiple threads to a single core, the CPU can make more efficient use of its processing power, allowing the video editing program to execute more quickly and efficiently.