Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-18-2002, 06:12 AM   #1
LQ Newbie
Registered: Dec 2002
Posts: 2

Rep: Reputation: 0
Question Understanding Multiprocessing in Linux

i want to understand multiprocessing in Linux
Old 12-18-2002, 09:55 AM   #2
Registered: May 2002
Location: NY, USA
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448

Rep: Reputation: 31
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.
Old 12-20-2002, 04:04 AM   #3
LQ Newbie
Registered: Dec 2002
Posts: 2

Original Poster
Rep: Reputation: 0
Re: Understanding Multiprocessing in Linux

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.
Old 12-20-2002, 12:43 PM   #4
Senior Member
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
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.
Old 12-20-2002, 03:18 PM   #5
Registered: Nov 2002
Location: Pennsylvania
Distribution: Mandrake 9.1 and Redhat 9
Posts: 144

Rep: Reputation: 15
I recommend


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
understanding linux code shahzadiub Linux - Newbie 1 06-25-2004 10:56 AM
Recompiling for Symmetric Multiprocessing bmxcamel Linux - Hardware 4 04-10-2004 10:49 PM
how to enable SMP ( Symmetric MultiProcessing ) in Redhat Linux mahendaran_pv Linux - Software 0 10-17-2003 01:13 AM
Understanding Linux better learninlinux Member Intro 1 10-03-2003 03:56 PM
multiprocessing in suse sxbah Linux - Hardware 3 03-29-2003 12:11 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration