If you go one by one, it will consume a lot of time. The best example is to execute a command across 10s of servers from a machine. In this article, we are going to discuss the methods available to execute multiple processes in parallel on a Linux system. ![]() When you have too many number of tasks waiting in line for CPU, then we say that the “machine is under load”. This switching is generally called as context switching. You can now imagine why we are under the illusion that multiple tasks are being executed at the same time. A typical computer will do 100s of switching between tasks in a single second. This switching between tasks happens so fast that it is very difficult for us to notice. But it will quickly switch to the next task, and then the next task and then the next (so basically in a way you can say that multiple tasks are progressing one by one). You might be running multiple things at the same time on a computer, but the computer will always execute one single task from your list of tasks at a time. Well, in most cases (with single core computers - meaning computers with one single CPU), the computer gives you an illusion that multiple things are happening simultaneously. ![]() Traditionally computers can only do one single thing at a time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |