LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Understanding Multiprocessing in Linux (https://www.linuxquestions.org/questions/linux-newbie-8/understanding-multiprocessing-in-linux-38745/)

ruchi0801 12-18-2002 05:12 AM

Understanding Multiprocessing in Linux
 
i want to understand multiprocessing in Linux

deesto 12-18-2002 08:55 AM

Unlike DOS, you can run multiple commands in Linux at the same time.
Let's say you have a huge file to be sorted. Terminate the sort command with the ampersand (&) symbol. The shell will execute it in the background:
$ sort huge_file &
[1] 962
$ _
962 is the PID (process ID) of your job. It is executed in the
background, and the prompt is returned immediately.
If a process is executing for too long, and you didn't set it to run as a background process, here is how to get back the prompt and set this process to run in background.
1. Press CTRL-z to stop the executing process.
2. You will get the prompt. Now type bg and press ENTER.
3. The process will be executed in the background, and you will get back the prompt for other work.
4. If at any time you want this to continue to execute in the
foreground, press fg at the prompt and press ENTER.
See this link for more info.

ruchi0801 12-20-2002 03:04 AM

Re: Understanding Multiprocessing in Linux
 
Quote:

Originally posted by ruchi0801
i want to understand multiprocessing in Linux
I want to know about how multiprocessing can be done using Linux. By multi-processing i mean , more than one processors. Unlike uniprocessing system , in multiprocessing actual multi-tasking occurs. The question is what are the different ways of obtaining multiprocessing in Linux such as SMP systems.

isajera 12-20-2002 11:43 AM

SMP can be a pretty complicated topic. your best bet is to start reading up on kernel mailing lists or any kernel resources you can find. pay attention to everything you can find about SMP, mutex locking, semaphores, scheduling, or race conditions. it's not something that can really be covered in a forum thread in any really meaningful way, aside from simple issues. there's a lot to it. you're welcome to ask away tho :)... we'll help out as much as we can.

blinux1 12-20-2002 02:18 PM

I recommend www.howstuffworks.com


All times are GMT -5. The time now is 06:22 PM.