LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-02-2011, 05:55 AM   #1
g.phanibabu
LQ Newbie
 
Registered: May 2011
Posts: 3

Rep: Reputation: Disabled
Question Processes in linux


Hi all,

I have a doubt regarding processes in linux. I am using centOS5.5. Will there be a process for KeyBoard && Mouse in linux?? I mean are the KeyBoard and Mouse interpreted as processes in Linux??


Thanks in Advance !!

G.Phani Babu.
 
Old 06-02-2011, 06:36 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Indeed; try the 'top' cmd and you'll see such processes as kpsmoused
 
Old 06-02-2011, 07:03 AM   #3
g.phanibabu
LQ Newbie
 
Registered: May 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Question Linux processes

Ok, what about the Keyboard dude? And can we get the idle time of a process??
 
Old 06-02-2011, 09:44 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,603
Blog Entries: 25

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Hi,

Welcome to LQ!

Check out 'man top'.

FYI: I suggest that you look at 'How to Ask Questions the Smart Way' so in the future your queries provide information that will aid us in diagnosis of the problem or query.

Just a few links to aid you to gaining some understanding;



1 Linux Documentation Project
2 Rute Tutorial & Exposition
3 Linux Command Guide
4 Bash Beginners Guide
5 Bash Reference Manual
6 Advanced Bash-Scripting Guide
7 Linux Newbie Admin Guide
8 LinuxSelfHelp
9 Utimate Linux Newbie Guide
10 Linux Home Networking
11 Virtualization- Top 10

The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!


"Knowledge is of two kinds. We Know a subject ourselves, or we know where we can find information upon it."- Samuel Johnson
 
Old 06-02-2011, 11:01 AM   #5
beyondaymk
LQ Newbie
 
Registered: Jun 2011
Posts: 1

Rep: Reputation: Disabled
I think the Keyboard and Mouse are just devices, not processes.
Of course, there should be drivers running with them and those drivers programs should be processes.
 
Old 06-02-2011, 11:41 AM   #6
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Quote:
Of course, there should be drivers running with them and those drivers programs should be processes.
I thought drivers were part of the kernel, not user-mode processes…? (Linux uses a monolithic design where drivers are essentially compiled into kernel AFAIK).

In any case, you're right that the keyboard/mouse are just seen as devices. Try cat /dev/input/mouse0 as root, move the mouse around, and you should see what I mean. (/dev/input/mouse0 is, AFAIK, the default device node file for incoming character data from the mouse driver. )
 
Old 06-02-2011, 02:46 PM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,603
Blog Entries: 25

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Hi,

Your correct! The OP should have looked at 'man top', within reference to 'ps'. Some leg work for the OP to understand the reasoning behind 'top' & 'ps'. Then references that were given to the OP that would provide good definition(s) to understand basic operations.

In checking '/dev' you will have either a block or character devices;
Quote:
excerpt from Rute Tutorial & Exposition
18.2 Block and Character Devices


Hardware devices can generally be categorized into random access devices like disk and tape drives, and serial devices like mouse devices, sound cards, and terminals.
Random access devices are usually accessed in large contiguous blocks of data that are stored persistently. They are read from in discrete units (for most disks, 1024 bytes at a time). These are known as block devices. Running an ls -l /dev/hda shows a b on the far left of the listing, which means that your hard disk is a block device:
The manner in which the device is handled is up to the 'interrupt handler' or as some say 'interrupt service handler'. Device driver is triggered by the interrupt thus servicing the device. API will control the information from the driver via the scheduler (completely fair scheduler).

Look at Kernel Map to get a basic understanding.
 
Old 06-02-2011, 03:00 PM   #8
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,202

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
another command would be the 'ps' command, though it simply creates an output and exits, it doesn't run in real time like top does
keyboard/mouse however are devices that are used by processes, not processes themselves.
 
Old 06-03-2011, 02:09 AM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
The k in kpsmoused refers to the kernel ....
 
  


Reply


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
Processes in Linux aramakri Linux - Newbie 1 04-27-2009 05:51 AM
Linux Processes sunil_sutar Linux - General 1 11-21-2008 02:06 AM
Limitations of System Processes and Oracle Processes in RHEL AS3.0 sathyguy Linux - Enterprise 0 03-03-2007 12:52 AM
Linux Processes? cdegroat Linux - General 6 04-18-2005 02:06 PM
monitoring active processes and identifying the required processes. gajaykrishnan Programming 2 08-13-2004 02:58 AM


All times are GMT -5. The time now is 05:10 AM.

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