All Lab Document_CEMK_2k18_3rd yr

All Lab Document_CEMK_2k18_3rd yr
Here is the pdf of all 4 labs....
(to download click subject name)





Operating System

All the programs are down below with output and at last there are some notes for you



COPY THE CONTENT OF A SOURCE FILE INTO A DESTINATION FILE

COPY THE CONTENT OF A SOURCE FILE INTO A DESTINATION FILE(COMMAND LINE ARG)

DUPLICATING FILE_DESCRIPTOR VALUE

IMPLEMENTING "ls" COMMAND USING "stat" SYSTEM CALL(COMMAND LINR ARG)

PRINTING PID,PPID,UID etc.

CREATING CHILD PROCESS USING fork();

MODIFYING PARENT & CHILD PROCESS

ZOMBIE PROCESS

DAEMON PROCESS

CREATING CHILD PROCESS WITH EXECUTE "ls" PROGRAM USING "execve" SYATEM CALL

REDIRECTING OUTPUT OF A PROGRAM INTO A FILE

ORPHAN PROCESS

REDIRECT OUTPUT OF "cat" COMMAND INTO A FILE

AN IPC BETWEEN PARENT & CHILD USING pipe();

IMPLEMENTATION OF "alarm" FUNCTION

OVERWRITE A SIGINT SIGNAL & INVOKE IT'S OWN SIGNAL HANDLER

SHELL>IMPLEMENTING POSITIONAL PARAMETERS(SHIFTING)

SHELL->ADD,SUB,MUL,DIV

SHELL>CHECK WHEATHER TWO GIVEN NO. ARE EQUAL OR NOT

SHELL>CHECK WHEATHER GIVEN NO. IS EVEN OR ODD

SHELL>GRADE OF STUDENTS

SHELL>PRINTING DATE,CURRENT DIRECTORY,EXECUTING PROCESS

SHELL>FACTORIAL OF A NUMBER

SHELL>TAKING & PRINTING ARRAY ELEMENTS

SHELL>COUNTING THE NO. OF FILES IN A GIVEN DIRECTORY

SHELL>COUNT NO. OF WORDS IN EACH FILE IN CURRENT DIRECTORY

SHELL>ADDITION USING FUNCTION

SHELL>COUNTING STRING LENGTH & PRINTING 3RD TO 6TH POSITION

SHELL>REVERSE A GIVEN STRING

SHELL>PALINDROME OR NOT

SHELL>LINEAR SEARCH(SEARCH WHEATHER A GIVEN NUMBER IS PRESENT IN THE ARRAY OR NOT)

SHELL>ARMSTRONG OR NOT

SHELL>PETERSON OR NOT

SHELL>MULTIPLICATION TABLE

SHELL>BUBBLE SORT

SHELL>INSERTION SORT

SHELL>SELECTION SORT

USING "lseek" READ SOME WORDS FROM A FILE & PRINT THAT TO MONITOR

OS_All Output Of Upper Programs

System Call Details

Os-intro.txt

Process1.txt

Process2.txt

Semaphore.txt

Signal1.txt



( Caution : Ignore white pages in the pdf  ) 

Comments