09-05-2006
my process goes to sleep mode after 12 hours but i need my processfirst priority
hi all
I process is sleeping after 12 hours but i need to be run this to 24 hours but it goes in sleep mode after 12 hours what should i do to make process always running.Kindly give me suggestion.
Last edited by mukesh_rakesh1; 09-05-2006 at 03:53 AM..
Reason: heading was not good
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
how to start a process and make it sleep for 5 mins and then kill that process (6 Replies)
Discussion started by: shrao
6 Replies
2. Shell Programming and Scripting
Hi All,
Here is my script:
sleep_time=`echo "9.6 * $num_servers"|bc| cut -d. -f1`
if ; then sleep_time=3600;fi
### Allow the compare script to kick in after 1 hour at the least
logger "Sleeping for $sleep_time seconds ...Will call compare.sh thereon" $act_log
sleep $sleep_time
#sleep... (3 Replies)
Discussion started by: ntgobinath
3 Replies
3. Shell Programming and Scripting
Hi
i want to print the time of a process in hours only..(or) in minutes only.Is there anyway to print the process such like that
when i give the commnand like following
#ps -eo pid,time
PID TIME
412 01:49:32
481 00:03
it shows in HH:MM:SS format:
Could anyone... (1 Reply)
Discussion started by: srikanthg
1 Replies
4. UNIX for Dummies Questions & Answers
Hello All,
I have a script which has a functionality to sleep for 300 seconds after it does some processing, so in the logs if i check after the 3 iteration of sleep it didn't write saying "sleeping for 300 seconds". I suspect putty would automatically terminate session as i cannot access it any... (1 Reply)
Discussion started by: Ariean
1 Replies
5. Shell Programming and Scripting
I had a script executing every hour to kill a process. I used loop rather than cron to execute it periodically. But now when I am trying to kill that sleep process of 1 hour its not getting killed. it is taking a new PID everytime I kill. To disable the script commenting is the only option... (1 Reply)
Discussion started by: nixhead
1 Replies
6. Shell Programming and Scripting
Hi,
How can i capture the running process for 2 hours.
Thanks in advance.:b: (1 Reply)
Discussion started by: sarathkumar
1 Replies
7. Shell Programming and Scripting
Hi, I have a parallelized Mathematica program that spans across 8 MathKernels processes running at 100% and one MathKernel (highlighted in blue) running at < 10% that controls the other 8. They look like this on the cluster:
https://www.unix.com/attachment.php?attachmentid=5111&stc=1&d=1381245618... (2 Replies)
Discussion started by: giovform
2 Replies
8. BSD
Hi Experts,
I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state.
On doing cat /proc/<pid>wchan showing the "__init_begin" in the output.
Can you please help me here... (0 Replies)
Discussion started by: naveeng
0 Replies
9. UNIX for Advanced & Expert Users
Hi Experts,
I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state.
On doing cat /proc/<pid>wchan showing the "__init_begin" in the output.
Can you please help me here... (1 Reply)
Discussion started by: naveeng
1 Replies
10. UNIX for Advanced & Expert Users
Hi Experts,
I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state.
On doing cat /proc/<pid>wchan showing the "__init_begin" in the output.
Can you please help me here... (6 Replies)
Discussion started by: naveeng
6 Replies
wakeup(9r) wakeup(9r)
NAME
wakeup - General: Wakes up all processes sleeping on a specified address
SYNOPSIS
void wakeup(
caddr_t channel );
ARGUMENTS
Specifies the address on which the wakeup is to be issued.
DESCRIPTION
The wakeup routine wakes up all processes sleeping on the address specified by the channel argument. All processes sleeping on this address
are awakened and made ready to be scheduled according to the priorities they specified when they went to sleep. It is possible that there
are no processes sleeping on the channel at the time the wakeup is issued. This situation can occur for a variety of reasons and does not
represent an error condition.
The sleep and wakeup routines block and unblock a process. Generally, a device driver issues these routines on behalf of a process request-
ing I/O while a transfer is in progress. That is, a process requesting I/O is put to sleep on an address associated with the request by the
appropriate device driver routine. When the transfer has asynchronously completed, the device driver interrupt service routine issues a
wakeup on the address associated with the completed request. This action makes the relevant process to be scheduled.
The process resumes execution within the relevant device driver routine at the point immediately following the request to sleep. The
driver, on behalf of the process, can then determine whether the condition for which it was sleeping (in this example, completion of an I/O
request) has been removed. If so, it can continue on to complete the I/O request. Otherwise, the appropriate driver routine can decide to
put the process back to sleep to await removal of the indicated condition.
RETURN VALUES
None
SEE ALSO
Routines: mpsleep(9r), sleep(9r)
wakeup(9r)