Professional Documents
Culture Documents
Dhruvik Tank OS Practical
Dhruvik Tank OS Practical
Operating Systems
(C201_3330701)
Semester – 3
Semester :3 Division : A
CERTIFICATE
Date of Submission: - / /
Sign Sign
Part 1: Install an Operating system. Take screen shots of step and explain each
step in brief.
2. After This Wizrd Appears , Select Typical Installation and Click On Next
OS 2
(3330701)
3. Select Your ISO File from Your Drive and Click on Next
8. When This Wizard Appears , select Your favorable language and click on next.
OS 5
(3330701)
Part 2: Pick any two different OS and compare them based on their features.
WINDOWS MACOS
File systems supported are NTFS, File systems supported are HFS+,
FAT, ISO 9660, UDF, HFS+, FATX APFS, HFS, UFS, AFP, ISO 9660,
OS 10
(3330701)
Kernel type is Hybrid with modules Kernel type is Hybrid with modules
here. here also.
The native APIs are Win32 and NT The native APIs are Carbon,
API. Cocoa, Java and BSD-POSIX.
Names Of OS Ownership
Arthur
ARX
MOS
Acorn Computers
RISC iX
RISC OS
Fire OS Amazon
AmigaOS 4 (PowerPC)
AMSDOS
Contiki
CP/M Plus
SymbOS
BeOS
BeIA
BeOS r5.1d0BeOS r5.1d0
magnussoft ZETA (based Be Inc.
on BeOS r5.1d0 source code,
developed by yellowTAB)
Windows XP
Windows 7
Windows 8 Microsot Corporation
Windows 10
OS 12
(3330701)
Chromium OS
Chrome OS Google
Android
Apple DOS
macOS
iOS
Unix
Bell Labs
MINI-UNIX
Burroughs MCP
Harmony OS Huawei
OS 13
(3330701)
LiteOS
iRMX
Intel Corporation
ISIS, ISIS-II
PRACTICAL – 2
AIM: Compare various process scheduling algorithms.
Process name Arrival time Required CPU Finish time Turnaround Waiting time
burst time(finish T- (TAT-CPU req)
Arrival time)
P1 0 5
P2 1 2
P3 2 4
P4 5 2
Process name Arrival time Required CPU Finish time Turnaround Waiting time
burst time(finish T- (TAT-CPU req)
Arrival time)
P1 0 8
P2 1 3
P3 2 4
P4 3 2
Process name Arrival time Required CPU Finish time Turnaround Waiting time
burst time(finish T- (TAT-CPU req)
Arrival time)
P1 0 6
P2 2 5
P3 4 8
P4 5 3
P5 6 3
P1 0 5 4 6 0
P2 1 2 3 5 3
P3 2 4 8 4 2
P4 5 2 10 11 9
GANTT CHART:
P1 P2 P3 P4
0 5 7 11 13
P1 0 5 5 5 0
P2 1 2 4 3 5
P3 2 4 8 6 8
P4 5 2 11 10 7
OS 16
(3330701)
GANTT CHART:
P1 P2 P4 P3
0 5 7 9 13
P1 0 5 7 10 1
P2 1 2 3 12 7
P3 2 4 13 8 6
P4 5 2 9 3 9
GANTT CHART:
P1 P2 P1 P4 P3
0 1 3 7 9 13
Table 1 using RR
Process name Arrival time Required CPU Finish time Turnaround Waiting time
burst time(finish T- (TAT-CPU
Arrival time) req)
P1 0 5 10 10 5
OS 17
(3330701)
P2 1 2 5 4 2
P3 2 4 13 11 7
P4 5 2 12 7 5
RR = 3ms
Gantt chart:
P1 P2 P3 P1 P4 P3
0 3 5 8 10 12 13
P1 0 8 8 8 8
P2 1 3 11 5 10
P3 2 4 15 4 6
P4 3 2 17 11 7
GANTT CHART:
P1 P2 P3 P4
0 8 11 15 17
OS 18
(3330701)
P1 0 8 8 8 0
P2 1 3 13 12 9
P3 2 4 17 15 11
P4 3 2 10 7 5
GANTT CHART:
P1 P4 P2 P3
0 8 10 13 17
P1 0 8 17 17 9
P2 1 3 4 3 0
P3 2 4 10 8 4
OS 19
(3330701)
P4 3 2 6 3 1
GANTT CHART:
P1 P2 P4 P3 P1
0 1 4 6 10
Table 2 using RR
Process name Arrival time Required CPU Finish time Turnaround Waiting time
burst time(finish T- (TAT-CPU
Arrival time) req)
P1 0 8 17 11 7
P2 1 3 6 3 7
P3 2 4 15 17 2
P4 3 2 11 6 3
RR = 3ms
Gantt chart:
P1 P2 P3 P4 P1 P3 P1
0 3 6 9 11 14 15 17
OS 20
(3330701)
P1 0 6 6 5 7
P2 2 5 11 8 6
P3 4 8 19 9 9
P4 5 3 21 13 12
P5 6 3 24 7 13
GANTT CHART:
P1 P2 P3 P4 P5
0 6 11 19 21 24
OS 21
(3330701)
P1 0 6 6 8 4
P2 2 5 17 5 5
P3 4 8 24 13 3
P4 5 3 9 2 9
P5 6 3 12 4 8
GANTT CHART:
P1 P4 P5 P2 P3
0 6 9 12 17 24
OS 22
(3330701)
P1 0 6 6 3 5
P2 2 5 17 11 9
P3 4 8 24 17 12
P4 5 3 9 3 2
P5 6 3 12 9 7
GANTT CHART:
P1 P4 P5 P2 P3
0 6 9 12 17 25
OS 23
(3330701)
Table 3 using RR
Process name Arrival time Required CPU Finish time Turnaround Waiting time
burst time(finish T- (TAT-CPU
Arrival time) req)
P1 0 6 18 15 11
P2 2 5 20 11 15
P3 4 8 24 19 19
P4 5 3 12 6 9
P5 6 3 15 7 6
RR = 3ms
Gantt chart:
P1 P2 P3 P4 P5 P1 P2 P3 P3
0 3 6 9 12 15 18 20 23 24
OS 24
(3330701)
PRACTICAL – 3
AIM: Test and run general purpose, directory related and file related
Linux commands.
Example:
cd- Change Directory
Syntax-
Usage-
Options-
Run command with various options and paste output here
Directory Related Commands
1) pwd: Print Working Directory
Syntax: pwd
Usage: Print working directory name.
Output:
PRACTICAL – 4
AIM: Test and run process related ,filters and other command like
expr, tee, set etc
Output:
Output:
Output:
OS 32
(3330701)
6) Ps : - ps is a command used for for viewing information related with the processes on a
system
Output:
Output:
OS 33
(3330701)
8) tee : - tee command reads the standard input and writes it to both the standard output
and one or more files.
Output:
9) set : - set command is used to set and unset certain settings within the shell
environment.
Output:
OS 35
(3330701)
PRACTICAL – 5
AIM: Test commands related with File editing with Vi, Vim, gedit, gcc.
VI Editor
Commands:
i. vi biodata
ii. ls
iii. cat biodata.
Output:
VIM Editor
Commands:
i. vim biodata
ii. ls
iii. cat biodata
Output:
OS 36
(3330701)
Gedit Editor
Commands:
i. gedit new3.txt
ii. cat new3.txt
Output:
GCC Editor
Commands:
i. touch ba.txt
ii. vi ba.txt
iii. gcc ba.txt
Output:
OS 37
(3330701)
PRACTICAL – 6
AIM: i.)Create a shell script to print bio-data.
ii) Create a Shell script to read from command line using for loop.
ii) Create a Shell script to read from command line using for loop.
n=$#
for i in $*
do
echo $i
done
Output:
OS 39
(3330701)
PRACTICAL – 7
AIM: i) Create a shell script to read and display content of a file.
ii) Create a Shell script to find numbers of characters, words &
lines of a given input file.
echo "Enter the name of file of whose content You want to read: " read
filename
Output:
ii) Create a Shell script to find numbers of characters, words & lines of a
given input file.
Output:
OS 40
(3330701)
PRACTICAL – 8
AIM: i)Create a Shell script to append content of one file to another.
ii) Create a shell script to copy content of two files in a third file
Output:
OS 41
(3330701)
ii) Create a shell script to copy content of two files in a third file.
echo "Enter First Filename:"
read firstfile
echo "Enter Second Filename:"
read secondfile
Output:
OS 42
(3330701)
PRACTICAL – 9
AIM: i) Create a Shell script to accept a string in lower case letters from
a user, & convert to upper case letters.
ii) Create a script to concatenate two strings and find the length of
the resultant string.
i) Create a Shell script to accept a string in lower case letters from a user,
& convert to upper case letters.
echo "Enter Text In Lowercase:"
read lwr
Output:
OS 43
(3330701)
ii) Create a script to concatenate two strings and find the length of the
resultant string.
echo "Enter First String:"
read firststring
echo "Enter Second String:"
read secondstring
third=$firststring$secondstring
Output:
OS 44
(3330701)
PRACTICAL – 10
AIM: Create a Script to reverse a string and display it.
Output:
OS 45
(3330701)
PRACTICAL – 11
AIM: Create a Script to check a string is palindrome.
Output:
OS 46
(3330701)
PRACTICAL – 12
AIM: Create a script to find average of the numbers entered at
command line.
sum=0
count=$#
while [ -n "$1" ]; do
sum=$(expr $sum + $1)
shift
done
Output:
OS47
(3330701)
PRACTICAL – 13
AIM: Create a script to find sum of digits in given 5-digit number.
Num=45678
g=$Num
s=0
# calculate sum of #
digit
s=$(( $s + $k ))
done
echo "sum of digits of $g is : $s"
Output:
OS 48
(3330701)
PRACTICAL – 14
AIM: Create a Shell script for a calculator using case.
"Enter a number"
read a
read b
read op
case $op in
+) expr $a + $b ;;
-) expr $a - $b ;;
\*) expr $a \* $b ;;
/) expr $a / $b ;;
esac
Output:
OS 49
(3330701)
PRACTICAL – 15
Create a shell script to reverse the digits of a given 5-digit number.
Output: