cpu loop
by vucni45 from LinuxQuestions.org on (#5P310)
Hi,
I like to see how i can see if a process is in cpu loop.
more y.sh
!/bin/bash
x=1
while [ $x -eq 1 ]
do
echo "test"
done
i execute this script and i see top
pid user pr ni virt res
1757 root 20 0 113284 1156 976 S 99.3 0.1 0:12.49 y.sh
The value under virt and res remain constant.
Is this show that this process is in cpu loop?
I like to see how i can see if a process is in cpu loop.
more y.sh
!/bin/bash
x=1
while [ $x -eq 1 ]
do
echo "test"
done
i execute this script and i see top
pid user pr ni virt res
1757 root 20 0 113284 1156 976 S 99.3 0.1 0:12.49 y.sh
The value under virt and res remain constant.
Is this show that this process is in cpu loop?