diff --git a/process.c b/process.c index 97d6d60..3c4b2eb 100644 --- a/process.c +++ b/process.c @@ -10,10 +10,10 @@ main() { for(i=0;i<3;i++) { - printf("\n Child process is running,pid=%d,ppid=%d",getpid(),getppid()); + printf("\n child process is running,pid=%d,ppid=%d",getpid(),getppid()); sleep(2); } - printf("\n Child Exited\n"); + printf("\n child Exited\n"); sleep(2); } else if(n>0) diff --git a/semaphore.c b/semaphore.c index dd6c655..dde09c1 100644 --- a/semaphore.c +++ b/semaphore.c @@ -20,20 +20,20 @@ main() if(semctl(sid,0,SETVAL,1)==0) printf("Semaphore initialized as 1\n"); if((val1 = semctl(sid,0,GETVAL))>0) - printf("Value of semaphore is %d\n",val1); + printf("value of semaphore is %d\n",val1); if((val = semop(sid,&s[0],1)) == 0) printf("Semaphore locked\n"); val1=semctl(sid,0,GETVAL); - printf("Value of semaphore after locking id %d\n",val1); + printf("value of semaphore after locking id %d\n",val1); s[0].sem_op=1; semop(sid,&s[0],1); printf("Semaphore unlocked\n"); val1=semctl(sid,0,GETVAL); - printf("Value after unlocking is %d\n",val1); + printf("value after unlocking is %d\n",val1); if((semctl(sid,0,IPC_RMID) == 0)) - printf("Close the semaphore\n"); + printf("close the semaphore\n"); }