Sunday, December 2, 2012

C Code FCFS First Come First Served Process Scheduling | Operating System

Write the programs to implement in C Code FCFS First Come First Served Process Scheduling   CPU scheduling algorithms. Take the inputs, Process name, Arrival time of the process, CPU execution time of the process. Use system timer to check the  time quantum and display after every second the process running on the CPU or if the CPUis idle until all the inputted
processes complete their execution. Calculate waiting time, turn around time for each
process.

C Code FCFS First Come First Served Process Scheduling | Operating System

 

 In this problem we can use time_t and get system time using time() which in the <time.h> header file so we need to import it also.Following Solution only for FCFS

Check Given Word Using Switch Case Shell Script | Shell Programming


Write a shell script to determine whether the given word begins with lower case or uppercase letter check whether it is three character word or whether it is starting with a special character

Check Given Word Using Switch Case Shell Script | Shell Programming


Accept Input from User as Word then using Switch case we can find out given Word in lower case or uppercase , whether it contain Special character or Its Three character

Compare Two Strings And Size Of Strings Shell Script | Shell Programming


Write a shell script  to to run check on strings which includes whether strings are equal or not and whether the size of the strings greater than zero or not.


Compare Two Strings And Size Of Strings Shell Script |  Shell Programming


Accept Two Strings from User on Terminal then first check Strings whether given string empty or not using [ -z $stringname ] it will return 1 if strings are empty after that we can compare this two strings using = operator .

Find Out File Size Using Shell Script | Shell Programming



Write shell script to to know whether the size of the file provided is greater than zero or zero and print size of file.

Find Out File Size Using Shell Script | Shell Programming


This is small script to finding out provided filename size whether it exist or not and if it then findout its size in Byte and print its size using stat -c%s $filename command.