03-05-2010
How OS loads process in memory to execute ?
Hi,
I was Googling to get info "How OS loads process into its memory to execute?" i mean when i execute ./<exename> , How OS exectes it?
It will be better if i tell my intention,
In my $LOGNAME saveral process are running, among all of these two process are my target process. Basically I want to tag these two process some how as easily i can manage these two process by C++ code.
Do not want to execute system call frequently.
Any Suggestion/Link?
Rgds,
ashokd
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
how to get memory used by a particular process in unix? (3 Replies)
Discussion started by: superprogrammer
3 Replies
2. UNIX for Dummies Questions & Answers
Hello all
'top' command shows the top 15 processes in terms of CPU usage. Is there any other command in UNIX ,that will show the top processes in terms of memory usage ? or is there a command, that will give me the memory usage of a particular process ,if I pass the process id as a... (3 Replies)
Discussion started by: luft
3 Replies
3. Shell Programming and Scripting
How do I find the amount of memory being consumed by a particular process on AIX 5L..
Thank you (0 Replies)
Discussion started by: khopdi
0 Replies
4. HP-UX
Hi,
Can anyone help me out in writing the shell scrip which monitors a process which is running and gives me the output of the memory being used by the process, I have the requirement of monitorig the memory usage of the process when it is running.
Please help me out (3 Replies)
Discussion started by: vijayagiri
3 Replies
5. AIX
Hi:-
Is there an easy way to find out which process is consuming the most memory on an AIX server?
Thanks, (5 Replies)
Discussion started by: janet
5 Replies
6. Shell Programming and Scripting
Hi,
I am trying to run a simple UNIX command after i successfully executed SFTP command as shown below.
-----------------------------------------
echo 'Step-1'
sftp -vvv -b path
exit
echo 'Step-2'
------------------------------------------
In above script it executes from the 1st... (3 Replies)
Discussion started by: gautamc
3 Replies
7. Emergency UNIX and Linux Support
Can someone please help me with a script that will help in identifying the CPU & memory usage by a process name, rather than a process id.This is to primarily analyze the consumption of resources, for performance tweaking.
G (4 Replies)
Discussion started by: ggayathri
4 Replies
8. Solaris
Hi Experts,
Our servers running Solaris 10 with SAP Application. The memory utilization always >90%, but the process on SAP is too less even nothing.
Why memory utilization on solaris always looks high?
I have statement about memory on solaris, is this true:
Memory in solaris is used for... (4 Replies)
Discussion started by: edydsuranta
4 Replies
9. Linux
Hi everyone , i'm working with extremely precision timers in a project but i cant get all the precision that i need 'cause the scheduler and other processes use the processor at "the same time" (multiplexing) and 1ms isn't a 1ms is more or less 1ms . There is some way to execute only a process and... (3 Replies)
Discussion started by: bacesado
3 Replies
10. Shell Programming and Scripting
I need to develop a process/daemon which will constantly monitor a file for new entry and execute a command.
for eg, there is a file /var/log/inotify.log
When a new entry like below gets appeneded to this file, execute the command as follows.
/home/user/public_html/bad.php|CREATE
... (2 Replies)
Discussion started by: anil510
2 Replies
LEARN ABOUT DEBIAN
setpgrp
SETPGID(2) BSD System Calls Manual SETPGID(2)
NAME
setpgid, setpgrp -- set process group
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <unistd.h>
int
setpgid(pid_t pid, pid_t pgrp);
int
setpgrp(pid_t pid, pid_t pgrp);
DESCRIPTION
The setpgid() system call sets the process group of the specified process pid to the specified pgrp. If pid is zero, then the call applies
to the current process.
If the affected process is not the invoking process, then it must be a child of the invoking process, it must not have performed an exec(3)
operation, and both processes must be in the same session. The requested process group ID must already exist in the session of the caller,
or it must be equal to the target process ID.
RETURN VALUES
The setpgid() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate
the error.
COMPATIBILITY
The setpgrp() system call is identical to setpgid(), and is retained for calling convention compatibility with historical versions of BSD.
ERRORS
The setpgid() system call will fail and the process group will not be altered if:
[EINVAL] The requested process group ID is not legal.
[ESRCH] The requested process does not exist.
[ESRCH] The target process is not the calling process or a child of the calling process.
[EACCES] The requested process is a child of the calling process, but it has performed an exec(3) operation.
[EPERM] The target process is a session leader.
[EPERM] The requested process group ID is not in the session of the caller, and it is not equal to the process ID of the target
process.
SEE ALSO
getpgrp(2)
STANDARDS
The setpgid() system call is expected to conform to ISO/IEC 9945-1:1990 (``POSIX.1'').
BSD
February 8, 2004 BSD