Quote:
Originally Posted by matrixmadhan
The above Pt cannot be accepted,
there is no relation or relavance in running a process bg or fg and the time it takes to complete.
only thing, background process when attempting to block on a read call through the command interpretor would be signalled to stop temporarily by the kernel.
Thanks Jim and Matrix for your prompt response.
Jim,
I am currently working the same way what you have mentioned. But I am not very much sure about your point of time getting splitted among different processes. In fact this is a load on the processor and the time for processing for uni processor machines will get affected. Hence it will take more time to execute each individual.
Let me put the way, I am doing.
#! /usr/bin/ksh
ksh abc.ksh & ## knowing that this job will take less time (2 hrs)
java xyz ## this is a quite longer job (4hrs)
wait ## assuming a case when the script will takemore
## time than the java
.
..
...
#some other processing which needs both the jobs finised
...
..
.
Earlier I used to run the jobs sequencially which was talking 6hrs+. But after doing the above said way, I did not feel any noticable improvements. That is the reason why I came up putting in from of right people.
What I need is the above jobs should get executed with a maximum time of time taken by java program, i.e 4 hrs in this case.
Any suggestion is welcome.
Regards,
...rin...