General :: Command / C Function To See Cpu Number On Which Process Running?
Feb 22, 2011When I fork multiple processes, is there some command or c function to see the cpu number on which the processes are running?
View 3 RepliesWhen I fork multiple processes, is there some command or c function to see the cpu number on which the processes are running?
View 3 RepliesIs there any command in linux to figure out , given a process, which processor the process is running? I am interested in figuring out the CPU busy and CPU idle time of that processor.
View 2 Replies View RelatedThe first call to "somefunction" works as expected. The function prints "endfunction" and a process in background sleeps 30 seconds. In the second call I thought it should work in the same way, but the script sleeps 30 seconds before it prints "endfunction".Does someone know the reason of this behavior? Is there another way to do a command substitution of a function that has a background process without have to waiting for that process?
View 2 Replies View RelatedI'd like to start a background job using the sudo command and route its output to a file. This presents a problem because the prompt for the password doesn't work properly. It looks something like this when I try it:
Code:
Mac:server user$ sudo php crossdomain_server.php > data/crosscomain_output.txt &
[3] 30303
Mac:server user$ Password:
[3]+ Stopped sudo php crossdomain_server.php > data/crosscomain_output.txt
Mac:server user$
Basically I'm not properly prompted for the password and as soon as I type anything in my background job fails because it didn't receive the password. Is there any way to execute a sudo command by supplying the password on the same line as the command?
Unix command that allows to know which process is running on processor core?
View 2 Replies View RelatedIs there any command to find out for how many Milli seconds a process is been running?s -a -o pid,etime | grep "process pid" gives the time in min:seconds. I wanted in milliseconds .
View 10 Replies View RelatedIS there any command to see number of threads are running in a process .I have check ps -eLf but it wont show display for all the threads
View 1 Replies View RelatedCan someone tell me what the number '2' refers to in function calls, for example fork(2).
View 3 Replies View RelatedI want to monitor the process running and execute a command if some new process start. For example send a mail if any new process start.
View 1 Replies View RelatedOptimum number of processes for procesor In Linux based os are there a optimum number of process for a processor that gives 'maximum performance' for system(or process range depend on cpu speed,cache etc...)? By 'maximum performance' I mean better performance?
View 5 Replies View RelatedI have 8 cores system, but I only want to use 4 cores of it. Are there any commands to show which cores are running tasks?
View 1 Replies View Relatedwhat is the function of resize2fs command and how this command works internally , how it is related to inodenumber or does it format the partition
View 6 Replies View RelatedI'm trying to get the end result to have the same format as this as well:
1 bin
2 daemon
67 erozner
[code]....
Where the numbers are the number of processes being run by the user (the name right next to it).if I input the command egrep myFile into the terminal, it should look for every line with the letter x in myFile, right?
I had a dream least night in which I was on my computer and I was typing the command Netstat -a in command prompt in Ms-Dos. And I was wondering why it looks so much like a Linux terminal command? This question persisted in my mind after I woke up. So what is the story about it?
View 3 Replies View RelatedI m using Redhat linux 5.1, I want to know what is the function of 'createrepo .' command while installing yum.
View 1 Replies View RelatedI have just created a usb boot disk so that I can install Fedora 14.I used the following which was successfully. However, I am left wondering what does the bs parameter actually does. I know it mean bytes and copies these at a time. But how do I know what to set it to?dd if=F14-Live-i686.iso of=/dev/sdb bs=8MIn the above example it is set to 8MB. However could I set this to any value that I want?
View 1 Replies View RelatedI have added mkalias in my .bashrc file as I learnt here
[Code]...
What is a Linux command that I can run to programmatically return either 32 or 64 to indicate whether the processor is a 32 bit or 64 bit processor?
View 4 Replies View RelatedHow can I know how many shells my system support (Is there any specific command)?
View 9 Replies View RelatedIs it possible, using ps, to determine where a process is running from? I have two applications, both are identical and running in parallel directories, such as /app1/start.sh and /app2/start.sh. If I run ps -ef then I'm unable to tell the difference between the two
Using ps (or alternative), how can I tell that PID 123 belongs to app1?
Is there a way for me to tell cron to run an app BUT not run it if a process exist already?
View 5 Replies View RelatedIs there some way to see only the process running in the background?
View 4 Replies View RelatedHow can i get the notification of process which are currently running?
We wrote one script which is being fired for every minute, instead of that is there any to trigger the event from linux core implicitly if there is any change in my process(pid)?
Is there any way to run a long process in background so that it still remain in running state even if the user logout the system.
View 12 Replies View RelatedSome help with this problem:Code:Write a function that counts the number of occurrences of a pair of letters in a string
View 13 Replies View RelatedI have a big file full of records like this
1, 2, 4, 5, 6
1, 3, 5, 6, 3
1, 4, 5, 6, 6
2, 4, 5, 5, 5
2, 3, 4, 5, 2
anyway i need to take the average of all rows with the same 1st number(key). i.e.
1, 3, 4.66, 5.66, 5
2, 3.5, 4.5, 5, 3.5
I know this is something awk/sed would be great for, i just dont have enough experience with them to accomplish it, Also, what about averaging those columns together? so, after I output this to a file, id like to get another like:
1, 4.58
1, 4.125
The number of colums to add might not always be 4 either. EDIT: this might be easier to do in gnuplot, so I mainly just need an answer to the first part.
I'm constantly going 'cd ../../../../'. Is there a command/alias that could let me go 'cmd 4' and I'd be taken back 4 directories?
View 8 Replies View RelatedWhat command will provide you with the number of files in your current directory?
Choose one answer.
A. ls -c
B. ls | wc -w (this one)
C. ls -n | count
D. ls -wc (this one ?)
How do you move a running process to the background? For example, type the command sleep 60 on the command line and try moving that process to the background.
View 1 Replies View RelatedCan we change cpu utilization if its have very high in running mode without stop that process.
View 1 Replies View Related