Operting System (Micro Project) 2
Operting System (Micro Project) 2
Operting System (Micro Project) 2
Submitted by:
1)Dipali Vishnu kale (2011630003)
Guided by:
Prof.G.K.Mangnale
Submitted to:
DEPARTMENT OF” COMPUTER ENGINEERING”
GOVERNMENT POLYTECHINC,HINGOLI
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
CERTIFICATE
This is to certify that the project report entitled ” operating
System”was successfully completed by student of fifth semester
diploma in Computer Engineering
NAME OF STUDENTS
Prof.G.K.Mangnale Prof.A.T.Adhave
Dr.Ashok.Upadhyay
principle
ACKNOWLEDGEMENT
We would like to express my gratitude to all the people behind the screen
who helped me to transform an idea into a real application. We profoundly
thank Prof. Dr. A. Upadhyay principal of our institute who has been an
excellent guide and also a great source of inspiration to our work. We would
like to thank our Professors of Computer Engineering branch for his technical
guidance, constant encouragement and support in carrying out my project at
college.
1 Introduction 6
2 Ubuntu infromation 7
5 Conclusion
15
6 Refrences 15
INTRODUCTION
Disadvantages
• If any issue occurs in OS, you may lose all the contents
which have been stored in your system
• Operating system's software is quite expensive for small
size organization which adds burden on them. Example
Windows
• It is never entirely secure as a threat can occur at any time
Quick Sort Pivot Algorithm:
while True do
while A[++left Pointer] < pivot do
//do-nothing
end while
end function
if right-left <= 0
return
else
pivot = A[right] partition = partitionFunc (left, right, pivot)
quicksort (left, partition-1)
quicksort(partition+1,right)
end if
end procedure
Flowchart:
Code for Quick Sort Program:
#!/bin/bash
function quicksort()
{
left=$1
right=$2
if [[ $1 -lt $2 ]]
then
pivot=${array[$1]}
while(( $left < $right ))
do
while((${array[$left]} <= $pivot && $left < $2))
do
left=$(($left + 1))
done
while((${array[$right]} > $pivot))
do
right=$(($right-1))
done
if [[ $left -lt $right ]]
then
temp=${array[$left]}
array[$left]=${array[$right]}
array[$right]=$temp
fi
done
temp=${array[$right]}
array[$right]=${array[$1]}
array[$1]=$temp
temp=$right
# pivot used in each case are printed for evaluation
quicksort $1 $((right-1)) array
quicksort $((temp+1)) $2 array
fi
}
echo “Enter the number of elements “
read limit
echo “Enter the elements into the list”
for((i=0;i <$limit;i++))
do
read array[i]
done
quicksort 0 $((limit-1)) array
echo Array elements after are :
for((i=0;i <limit;i++))
do
echo${array[$i]}
done
Output:
Conclusion:
In this project we have studied how to create a quicksort
program using shell script. Also we studied about the shell
script in Ubuntu Operating System. An operating system is a
software which acts as an interface between the end user
and computer hardware.
References:
• https://en.wikipedia.org/wiki/Operating_system
• https://en.wikipedia.org/wiki/Shell_script