General :: Process Scheduler A Part Of Process Queue?

Aug 12, 2010

as we all know Process Scheduler does Process scheduling and its a process as well. I was just wondering that if this happens then the Process "Process Scheduler" should be a part of Process queue as well.

So if there are 5 process are there in Process queue & process scheduler is administrating them then since its also a process, once it puts a process under RUN state it should itself go inside queue because at one instant only one process can get executed on a processor. This is quite confusing for me. Please help me out. I tried to search on this but could not find any relevant topics.

View 1 Replies


General :: Download Scheduler Program Code Which Creates Multiple Threads Of The Downloading Process?

Apr 30, 2010

I have created a simple download schedular with source-code give below :
touch /home/student/packs/lynx/logfile
lynx -cmd_log /home/student/packs/lynx/logfile


View 1 Replies View Related

General :: Kills A Process Internally Or From Where It Picks File To Continue Its Process?

Jan 8, 2010

one tell me the internal working of kill command. that is how it kills a process internally or from where it picks file to continue its process.

View 3 Replies View Related

General :: Elevate The Priority Of A Process Without Process Superuser Rights?

Jan 21, 2011

I have a high priority service that I start with sudo nice -n -10 process. This process does not need superuser rights though, except for the priority elevation. But nice requires superuser privileges to elevate priority.

View 3 Replies View Related

General :: How To Identify Raid Degrade Process / How To Rebuilt Process

Jun 12, 2010

send the details raid configuration how to use in linux el5 and how to indentify the raid degrade process and how to rebuilt the process.

View 4 Replies View Related

General :: Sending Signal From Child Process To Parent Process?

Sep 8, 2010


#include <stdio.h>
#include <unistd.h>
#include <signal.h>


Description of what the code does or what i intended to do:

1. Created a child process from parent process using 'fork()'

2. Sent a signal 'SIGALRM' from child process to parent process using 'sigqueue' function.

(The Third parameter of 'siqueue' function contains the message (message msg) which the child process wants to send to the parent process.'msg' is a stucture instance containing a) pid of child and b) string) 5. Print the 'msg' sent by child process inside the signal handler function 'sig_action_function' of the parent process I am getting some junk value when this line is executed



I expected to get the pid of child process, which the child process sent to parent process through the signal.

View 3 Replies View Related

General :: Find The Parent Process Of A Zombie Process?

May 4, 2010

How do you find the parent process of zombie processes?

When the child process is something where the parent is not entirely obvious...

Is there some way to list processes in tree format or something?

View 3 Replies View Related

General :: Process Shows Multiple Process Ids(pids)?

Nov 9, 2010

I have a process running on Linux.When i do ps -eaf | grep <myProcess>, it show muliple entries for <myProcess> with different pids for each entry.Kindly tell me what could be the reason for a process having multiple pids?

View 1 Replies View Related

Ubuntu :: Part Of Boot Process Executes Just Before Login Screen?

Apr 12, 2011

In Ubuntu 10.10 I want to have a shell script execute on bootup after everything else is done, *just* before the computer gets to and sits at the login screen. I find this easy in CentOS/Red Hat. If I place my scripts in /etc/inittab near the end, right after the mingettys, that is PERFECT. But Ubuntu has no /etc/inittab and I have spent the past few days going over and over and OVER more info about Upstart and the rcX scripts and I can't seem to get it. Anything I place in an rcX script runs too late, only after the machine is past the login screen i.e. a human must log in first. And I would rather not have to enable auto-login. I've heard that Ubuntu will honor an /etc/inittab file if you create one, and it does, but that too runs too late, only after a human has logged in. Can anyone tell me where a script should be placed in Ubuntu to execute after all system initialization is done, but before human interaction is required?

View 3 Replies View Related

General :: Ran New Process After Sungrid Process Finished?

Mar 23, 2010

I want ro ran new commandy after sungrid finish his task.Exp:qsub -q bla command1; command2 command2 start only when job of command1 finished.

View 9 Replies View Related

General :: Save The Process And Log Out Then Log In And Continue The Process?

Nov 16, 2010

I've been running my shellscript for about half an hour now. It's taking longer than I thought to process all the data. I have the process ID of it. Is it possible to save the process and log out then log in and continue the process? I know how to pause a process using kill -pause pID and continue it using kill -cont pID. But that only work if you don't log out after pausing it.

View 5 Replies View Related

Red Hat / Fedora :: Command To Stop That File/process Or Is It Just Kill The Process To Stop The Process?

Nov 11, 2010

I've some file with .sh extensions that runs some softwares.Now,how do I stop running that filesI know we run the command ./ to start the apache.Is there any command to stop that file/process or is it just kill the process to stop the process

View 2 Replies View Related

General :: Killing Parent Process Without Killing Child Process (Linux C Programming)?

Mar 10, 2011

I want to kill parent process after "fork()" method. but if I kill parent process with "exit(0)" method, main() thread is terminated as well so child prosess doesn't work anymore. Is there any way to kill only parent process without affecting to child process?

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>


View 1 Replies View Related

Programming :: Displaying Process Id In Shell Script But There Is No Such Process?

Nov 9, 2010

I have a shell script to identify whether the process is running or not. If the process is not running, then I execute another script file to run my application. Below is my script and saved this script as Code: #!/bin/bash

result=$(ps -ef | grep -v grep | grep "" | awk '{print $2}')
echo $result
if [ "$result" == "" ];


View 4 Replies View Related

Programming :: Difference Between Init.rc Process And Normal Process?

Mar 31, 2011

Is there any difference in cpu usage for process in init.rc(runs automatic when boot is happened) and manually running process. Will these both have same priority by default...?

View 1 Replies View Related

Programming ::get The PID Of The Process Giving Kill Signal To A Process?

Nov 26, 2008

I tried googling but didn't get any answer for this.I have a process called "abc" and it is running with PID "123".I have a putty session opened with PID "999".I am giving kill -TERM 123 from putty session.My process "abc" before dying it should catch the PID of the terminal which provided TERM signal to it.Is there any way to find this out

View 2 Replies View Related

General :: Get Process Name By Process Id?

Sep 17, 2010

I need a command to get the process name by process id.

View 2 Replies View Related

Programming :: Showing Process Id But There Is No Such Process?

Nov 9, 2010

I have a shell script to identify whether the process is running or not. If the process is not running, then I execute another script file to run my application. Below is my script and saved this script as

result=$(ps -ef | grep -v grep | grep "" | awk '{print $2}')


View 14 Replies View Related

Programming :: Under Which Circumstances A Child Process Creates Another Child Process Using Fork

Dec 7, 2009

Consider the following code:


int main()
int i=0;
pid_t pid;


I get the following output:

Parent: chid_pid=4356 i=0 parent's pid=4355
This is child 4356 i=0
This is child 4357 i=1


I can observe instead of two children(as I expect) processes there are three. This is because child process 4356 creates its own child. Why all the messages of the type "This is child X i=Y" are concentrated one under another? How exactly fork works? Is affected by the fact that I have a dual-core processor?

View 3 Replies View Related

General :: How To Tell If Process Is 64bit

Dec 21, 2010

Given the pid of a process that's running on a x64 linux, how do I tell if it's running a 32 or 64 bit binary? I can look at the binary it's running out of 'ps' and do a file on that but I was wondering if there's a way to tell by looking at /proc/ or something like that.

View 2 Replies View Related

General :: Pinning Process To A CPU?

Mar 24, 2011

I wish to pin a process to a CPU1 in my dual CPU machine - how can I do it in Linux - any pointers ?

View 2 Replies View Related

General :: Where Does Netstat Get The Process Name

Jun 25, 2011

I am developing a node application and there is an option to set the process title (process name). This only sets it in some tools (like ps and top), but not in htop or netstat.

I found this article that explained how most applications do it, but it doesn't change in netstat.

That lead me to wonder where those programs are getting the process name. Would they be getting it from /proc/##/cmdline? (## being the PID of the process)

I figure messing with things in /proc is a bad idea (and probably not possible), so if this is where those programs are getting it, is there a way to change it?

View 1 Replies View Related

General :: Process Of Encrypting RAM While Still Using As RAM?

Jun 21, 2010

From previous post I have a netbook from work that I have Debian Squeeze running on and did a full disk encryption (minus the minimal boot loader in /boot) in case it gets stolen. However, with a laptop/netbook it has a battery and I believe the encryption protocol (LUKS - correct me if I'm wrong) uses RAM to store the decrypt key. So if someone is quick they can dump RAM and analyze it until they get the key. Or even if the key is not stored there they could dump RAM which would have recent files cached unecrypted.

Is there an easy process of encrypting RAM while still using as RAM? What I mean by that is I know you could make a ramdisk sort of like how Live CDs do and encrypt that, but at best (that I know of) I can only mount it as swap space.

View 14 Replies View Related

General :: Run Two Background Process?

Oct 26, 2010

i have ported linux into arm and i want to run two background process on target

i have two c programs a.c and b.c
i have cross compiled them as
arm-linux-gcc -o a a.c


View 8 Replies View Related

General :: %CPU Too High For Process?

Mar 4, 2011

I am using centos 5, Kernel 2.6.18-53.el5. I am using 2 quad core processor with 4gb of ram

I am trying to figure out the significance of %CPU in the ps command.

My astreisk process %CPU is very high at the moment, at 115. I want to know if it is a cause for concern? If I do a top then the load of the box is very low.

root 2872 115 1.4 628664 58372 ? Sl 14:56 190:30 /usr/sbin/asterisk -f -vvvg -c

View 4 Replies View Related

General :: CPU Usage Of Process

Jul 15, 2011

I am currently writing a JAVA script to monitor certain unix processes through JConsole. Upon having lots of trouble with runtime.exec, i decided to bypass the top/ps command call and just get the information straight from /proc/*pid*/whatever.Now i can pull back any information from any of the files I want, and the current way i determine the CPU usage of a process is as follows:Add the UTime and STime of that process from /proc/pid/stat then divide my pidCpu by UTime + STime + NTime from /proc/stat, then multiply that by 100, should give me the % cpu usage a process is using, right?Theory being if I get the jiffies assigned to my process, I can divide that by the total jiffies the cpu assigns.

However, my results seem to vary from the ones gathered from top and ps. What am I doing wrong?

View 2 Replies View Related

General :: Limit Any Process From Using More Than 500 MB Of RAM?

Jan 30, 2011

I would like to limit any process from using more than 500 MB of RAM. AFAIK this is done using RSS in /etc/security/limits.conf but the process called gnome-panel apparently is using 618436 kB of VmRSS. How can this be ?


* hard rss 512000


username@debian:~$ cat /proc/3002/status
State:S (sleeping)


View 4 Replies View Related

General :: Process CPU Usage

Sep 6, 2010

If I, using sar or vmstat, found that there is a CPU load on my Linux box. How can I know the top processes consuming the CPU?

View 9 Replies View Related

General :: Process Name Same As Of User

Jan 12, 2010

I list the process with

ps -ef | grep java
and I got:

user1 24041 ....
Here the user1 should the process name.

My question: Is this name the same as the user name?

View 2 Replies View Related

General :: What Is The Process To Become A RHCE

Jan 23, 2010

what is the process to become a RHCE and what will be the exam fee for the same in india?

View 1 Replies View Related

Copyrights 2005-15, All rights reserved