Programming :: PID Of A Process Changes During Its Life Cycle?

Jan 27, 2010

Is the PID of a process changes during it�s life cycle in linux ?Or it�s PID is fixed throughout of process�s life cycle.

View 2 Replies


ADVERTISEMENT

Programming :: Real Life Example Of Running Main Function Infintely?

Jun 18, 2011

This is not a Linux specific question.Can someone over here give me an example where I have to run the main function infinitely?

View 4 Replies View Related

Programming :: Difference Between Scope,linkage And Life Of A Variable In C Language?

Mar 4, 2011

As i went through some tutorials found no difference in their meaning .. explain the difference in usage.

View 5 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 monitorprocess.sh Code: #!/bin/bash

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

[code]...

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

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 monitorprocess.sh

Code:
#!/bin/bash
result=$(ps -ef | grep -v grep | grep "applicationname.sh" | awk '{print $2}')

[code]...

View 14 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>

[code]....

View 1 Replies View Related

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

Dec 7, 2009

Consider the following code:

Code:

int main()
{
int i=0;
pid_t pid;
for(i=0;i<2;i++)

[code]....

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

[code]....

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

Programming :: Unix Programming - Single Process That Does Not Start Up Any Other Threads

Sep 28, 2010

i want a process that can operate as both a TCP echo server and a UDP echo server. The process can provide service to many clients at the same time, but involves a single process that does not start up any other threads.

View 3 Replies View Related

Ubuntu :: Cycle Desktop Backgrounds In 11.04?

May 24, 2011

I just updated to 11.04, and noticed in the "Background" tab of the appearance app, that there was what looked like a default option to cycle a set of backgrounds. However, when I selected it, the only background that appeared was the first one in the series, and it never cycled.

1) Is cycling backgrounds possible?

2) If so, can I create my own series of them?

View 1 Replies View Related

Debian :: Breaking Ordering Cycle (systemd)

Nov 8, 2015

When I boot my debian desktop, I get these errors:

Code: Select allnov 08 22:05:12 Luca-PC systemd[1]: Job paths.target/start deleted to break ordering cycle starting with basic.target/start
nov 08 22:05:12 Luca-PC systemd[1]: Job rpcbind.service/start deleted to break ordering cycle starting with basic.target/start
nov 08 22:05:15 Luca-PC systemd[1]: Job paths.target/start deleted to break ordering cycle starting with basic.target/start
nov 08 22:05:15 Luca-PC systemd[1]: Job sysinit.target/start deleted to break ordering cycle starting with basic.target/start
nov 08 22:05:15 Luca-PC systemd[1]: Job rpcbind.service/start deleted to break ordering cycle starting with sysinit.target/start

The system works perfectly, but I'd like to understand why I get these errors, and how I can fix them.

View 4 Replies View Related

Ubuntu :: Endless Boot Cycle With Xp In Grub2

Mar 23, 2010

I have recently been unable to boot into windows xp, which is on a drive separate from my linux installation. When I select the windows installation, the computer starts back at the bios screen and returns to grub endlessly. I am running an updated 9.10. The linux will boot fine; however the most recent kernel does not show up on the list of available options, which may indicate something. I have searched the forum and found nothing that helps. There are plenty of posts asking if you have stopped using windows altogether and other non tech related posts though.

The results of sudo fdisk -l are below:

View 7 Replies View Related

Ubuntu :: 10.04 CD Mount Error In Boot Cycle?

May 26, 2010

I just upgraded from 9.10 to 10.04.Now, when I boot up, I encounter an error in the boot cycle "An error occurred while mounting /media/cdrom0" "Press S to skip mounting or M for manual recovery"Pressing S does work to get me through the cycle and does not affect CD-ROM use once the OS loads. How would I find out what is causing the error or is there a safe way to stop it from trying to mount a drive with no media in it?Quote:GNU nano 2.2.2 File: /etc/fstab

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>

[code]....

View 1 Replies View Related

Ubuntu :: Continuous Reboot Cycle After Hibernation?

Aug 29, 2010

I have Unbuntu 10.4 installed on a netbook. It is the only OS installed so no GRUB menu.

It hibernated last night, and now when I try to boot it hits the initial few steps in the boot process and then reboots.

Any thoughts on how to fix this problem. I have tried to access a GRUB menu w/ the ESC key but no dice.

View 1 Replies View Related

Ubuntu :: Endless Cycle Of Logging In And Out Error?

Aug 31, 2010

i updated the compiz fusion plugins and decided to try some out, and when i tried the reflected windows, it logged me out and i had to log back in. but now as long as it's active, i can't login long enough for me to disable it, Edit: nvm, i managed to fix it. login under Failsafe GNOME session, and it'll be in safe mode, with all add-ons disabled, so you can manually turn them off

View 1 Replies View Related

Red Hat / Fedora :: Kernel Panic Following Bad Power Cycle

Apr 20, 2010

I have a client who has for the last four years been running a Red Hat 4.1.18 Server with absolutely zero problems. Yesterday somebody had a problem with one of the attached Windows PC's and some genius decided to reboot the server. By genius I mean idiot and by reboot I mean pull turn off the power to the box.

When they tried to reboot, they get a kernel panic. This is what the screen says;
Uncompressing Linux... Ok, booting the kernel.
audit(1009912323.849:0): initialized
Red Hat nash version 4.1.18 starting
File descriptor 3 left open
Reading all physical volumes. This may take a while...
/dev/hda: open failed: No medium found
No volume groups found
File descriptor 3 left open
/dev/hda: open failed: No medium found
No volume groups found
File descriptor 3 left open
/dev/hda: open failed: No medium found
No volume groups found
mount: error 6 mounting ext3
mount: error 2 mounting none
switchroot: mount failed: 22
umount /initrd/dev failed: 2
Kernel panic - not syncing: Attempted to kill init!

The server runs the database for their entire POS system so they are now dead in the water. I'm stuck, I've never come across this before. What do I do to recover this?

View 6 Replies View Related

General :: Cycle Between Three Directories, Always In The Same Virtual Console (VT)?

Nov 18, 2010

I want to cycle between three directories, always in the same virtual console (VT). Just the case of 'cd -' but with three dirs instead of two dirs. Can this be done by simple means?

View 2 Replies View Related

General :: Keyboard Shortcut To Cycle Through Windows?

Jun 22, 2011

On the Mac, I use Command + ` (the tilda) to cycle through windows in the current application (eg terminal or chrome). It's like alt + tab except only for the current application's windows. (possibly on compiz but without any flashy exposee like graphics)?

View 2 Replies View Related

Software :: Check Which Processes Are In Wait Cpu Cycle?

Aug 10, 2010

My mail server is presenting a high wait time (see attachment) that sometimes reaches 80%. How can I check which processes are doing that?

View 1 Replies View Related

Programming :: How To Get Process ID Using Pidof

Jan 31, 2011

I tried to get process ID using pidof. It didn't give any error but a blank output at console Code: $ pidof -s instance1

$
But when I use ps -ef, I get the process ID Code: $ ps -ef | grep instance1
root 4174 21661 0 06:52 pts/1 00:00:00 grep instance1
provgw 30220 30219 28 06:46 pts/1 00:01:44 /usr/java/jdk1.6.0_18/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

[Code].....

View 5 Replies View Related

Programming :: Force Two Process To Run On The Same CPU?

Jan 11, 2011

I'm programming a software system that consists of multiple processes. It is programmed in C++ under Linux. and they communicate among them using Linux shared memory.

Usually, in software development, is in the final stage when the performance optimization is made. Here I came to a big problem. The software has high performance requirements, but in machines with 4 or 8 CPU cores (usually with more than one CPU), it was only able to use 3 cores, thus wasting 25% of the CPU power in the first ones, and more than 60% in the second ones. After many, many research, and having discarded mutex and lock contention, I found out that the time was being wasted on shmdt/shmat calls (detach and attach to shared memory segments). After some more research, I found out that these CPUs, which usually are AMD Opteron and Intel Xeon, use a memory system called NUMA, which basically means that each processor has its fast, "local memory", and accessing memory from other CPUs is expensive.

After doing some tests, the problem seems to be that the software is designed so that, basically, any process can pass shared memory segments to any other process, and to any thread in them. This seems to kill performance, as process are constantly accessing memory from other processes.

Now, the question is, is there any way to force groups of process to execute in the same CPU?. I don't mean to force them to execute always in the same processor, as I don't care in which one they are executed, but that would do the job. Ideally, there would be a way to tell the kernel: If you schedule this process in one processor, you must also schedule this "brother" process (which is the process with which it communicates through shared memory) in that same processor, so that performance is not penalized.

View 1 Replies View Related

Programming :: Know Status Of Process With PID?

May 25, 2010

How can I programatically know the status of a process if its PID is known?

View 1 Replies View Related

Programming :: Using Copy_from_user With 2 Process?

Oct 20, 2010

Is there a way to send/receive messages between 2 process using copy_from_user and copy_to_user ? I'm looking for some article, but did not found anything.

View 1 Replies View Related

Debian :: System Slow After Successful Hibernation Cycle

Feb 2, 2010

I'm running Debian Sid amd64 on a Vostro 1320. Both hibernate and suspend works fine using the kernel hooks, but after the system resumes from hibernation, it starts to get really sluggish. Iceweasel hits 100% CPU use, and I have to close it and open it again to get it working, and generally the system is just must slower than before the hibernation. I have to reboot to get performance back, and even doing swapoff and swapon does not solve the problem.

View 4 Replies View Related

Debian :: Testing Rpc.statd Broken In Last Update Cycle?

Apr 8, 2011

I rely on NFS shares to mount home directories and the shared apt cache on my home workstations. Since the last update, rpc.statd has broken and the service fails to run at boot. When init encounters nfs-common, the system shows: Starting NFS common utilities: statd failed!

and then it hangs on trying to mount /var/cache/apt

if anybody who uses testing has any clue as to whether there is a fix coming from the upstream, or if there is a config fix for it.

View 7 Replies View Related

Ubuntu :: Live Wallpapers For ComPiz - Changes By A Night Day Cycle ?

Nov 7, 2010

I've got the galaxy live wallpaper but I'm wondering if anyone know's of other ones? like the one that changes by a night day cycle?

View 7 Replies View Related

Ubuntu :: Infinite Boot Cycle Loop After Grub

Jan 26, 2011

When I boot one of my machines, it gets as far as GRUB, then proceeds to a blank screen for a second, and then repeats the cycle all over again - ad infinitum. I have tried previous kernels on the list with the same results Also, I cant boot into recovery mode either.

I have run Memtest successfully from the GRUB options and no errors appear in the results. I have tried booting from a Live CD and here I get as far as the "OS choosing screen". When I then select one and hit Enter, the screen goes blank and the machine reboots as before.

View 5 Replies View Related

Ubuntu :: When Set CompizConfig To Cycle Wallpapers Nothing Happens - The Background Stays The Same

Jun 30, 2011

I've set all the wallpapers I want to cycle, I've set the time to 15 sec checked the "Cycle" box but nothing happens. The background stays the same. Log in-out didn't work. I'm on Ubuntu Classic

View 6 Replies View Related

General :: Loop Terminates / Quits After Single Cycle

Jul 14, 2011

I tried to find an answer to whatever is happening with my sh, tried a few approaches, but none is working the way I planned... the loop quits with exit 0, runs once, if I comment out 'ffmpeg' line, it runs N times as it should - ffmpeg does not error out other than 0.

Code:
find . | grep .mp3 | while read filename do
newfilename=`echo "$filename" | tr ".mp3" ".ogg"`
ffmpeg -i "$filename" -acodec libvorbis -ac 2 -aq 4 -y "$newfilename"
echo inside #4debug
done
echo outside

This sh runs once, echoes "inside" 'n "outside" once, exits with '0'... unless ffmpeg commented out. I also tried to feed the loop with: done < /tmp/fname.list. BTW, this works well - but I am very interested in the >while read< loop giving up.

Code:
for i in *.mp3; do ffmpeg -i "$i" -acodec libvorbis -ac 2 -aq 4 -y "$(basename "$i" .mp3).ogg"; done

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved