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. |
Indeed; try the 'top' cmd and you'll see such processes as kpsmoused
|
Linux processes
Ok, what about the Keyboard dude? And can we get the idle time of a process??
|
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 |
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. |
Quote:
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. ;)) |
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:
Look at Kernel Map to get a basic understanding. |
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. |
The k in kpsmoused refers to the kernel ....
|
All times are GMT -5. The time now is 06:47 PM. |