ABOUT TASK_KILLABLE state TASK_KILLABLE sleeping state. Like most versions of Unix, Linux has two fundamental ways in which a process can be put to sleep. A process which is placed in the TASK_INTERRUPTIBLE state will sleep until either (1) something explicitly wakes it up, or (2) a non-masked signal is received. The TASK_UNINTERRUPTIBLE state, instead, …
Tag Archives: sleep
Print With Delay 0.3
/* Jeffrin Jose Licensed GPL v3 Copyright August 2010 GPL –> http://www.gnu.org/copyleft/gpl.html */ #include #include int main() { int seconds; int i=0; char array[20]=”Happy Friendship Day”; /* printf(“n Happy Friendship Day n”); */ for(i=0;i<20;i++) { printf("%c",array[i]); /* for(seconds=0;seconds<100000000;seconds++);*/ /* system("sleep 1s");*/ fflush(stdout); sleep(1); } printf("\n"); for(i=0;i<20;i++) { printf("%c",'-'); /* for(seconds=0;seconds<100000000;seconds++);*/ /* system("sleep 1s");*/ fflush(stdout); usleep(100000); …