I.K.G Punjab Technical University, Kapurthala: Operating System Lab BTCS404-18
I.K.G Punjab Technical University, Kapurthala: Operating System Lab BTCS404-18
BTCS404-18 2224525
Bachelor of Technology
(Computer Engineering)
1
Operating System Lab Rohit Kumar
BTCS404-18 2224525
2
Operating System Lab Rohit Kumar
BTCS404-18 2224525
Step-3-> Prepare a bootable operating system DVD or USB stick for devices without a DVD
reader
a) You burn the installation files onto a DVD. It is important that not
simply burn the ISO file onto the DVD,
a special burning process is made bootable. There are two here
Methods that we recommend. If one fails, please try the
other. Windows XP and Windows Vista users definitely need to
Use method 2.
b) You prepare a USB stick specifically so that it becomes bootable and that
Operating system can be started with it if the computer e.g. Not
has a DVD drive. There are two programs here that we
recommend Windows USB / DVD Download Tool and Rufus, see also
Method 3 and 4.
3) When the process is finished, you can use the DVD for installation.
1) A bootable USB stick can be easily created with the “Windows USB / DVD Download
Tool”. It comes directly from Microsoft and can be downloaded here
http://wudt.codeplex.com/. Please be patient, the website loads very slowly. Click
“download” on the right side of the website.
3
Operating System Lab Rohit Kumar
BTCS404-18 2224525
2) Install the program and open it. It should be in the “Programs” folder.
3) Now select the Windows operating system ISO file to be copied to the USB stick
(“Browse”) and click on “Next”.
4
Operating System Lab Rohit Kumar
BTCS404-18 2224525
5) Now insert the USB stick, if it is not displayed, click on the small “update”
symbol. Attention: The USB stick will be deleted completely! If there is important data
on it, be sure to copy it to another location.
Now click on “Begin copying”. The bootable USB stick is created. This can take a few
minutes.
1) Go to http://rufus.akeo.ie
2) Find the “Download” area and be sure to download version 2.18 – this is the last one that
still supports Windows XP and Vista. If a newer version is offered, go to “Other versions” to
download this version.
5
Operating System Lab Rohit Kumar
BTCS404-18 2224525
you want to put on the stick and confirm the entry. Rufus automatically makes the correct
settings.Please note that the USB stick must be larger than the ISO file! You must also know
that all data on the stick will be deleted. So make sure to backup the data if there is any on it!
5) Click on “Start” and wait until the files have been copied onto the stick properly.
Have you now followed the instructions and created a boot DVD or bootable USB stick?
Now you have to get your PC to boot from it and start the Windows 7 installation process.
This is the easiest method, but it doesn’t always work. Simply insert the DVD and double-
click “setup.exe” when the “AutoPlay” window opens.
For example, this is how it looks when you install Windows 11:
If the window does not open automatically, please open the Explorer and double-click
“setup” manually.
6
Operating System Lab Rohit Kumar
BTCS404-18 2224525
Method 2: Set boot order in BIOS
Regardless of whether you want to start from a DVD or a bootable USB stick, you must
first tell the computer that it should boot from your medium, otherwise it will simply boot the
system that is already installed.
7
Operating System Lab Rohit Kumar
BTCS404-18 2224525
Now you can choose whether you want to upgrade an existing system (“Upgrade: Windows
….”) or whether you want a so-called “Clean Install” (“Custom: …”). The latter will delete
all data if you install it on an existing partition. Please note that the upgrade only works if the
same bit version is selected as for the original system. So it is possible to upgrade from a
32bit system to a Windows 10 system, but not from e.g. from 64bit to 32bit.
It is only possible to upgrade from Windows 7 to Windows 10, unfortunately older versions
such as Windows XP or Vista are no longer supported.
In any case, make sure to backup your data , as there is always a risk of data loss!
8
Operating System Lab Rohit Kumar
BTCS404-18 2224525
Now select the partition on which Windows 11is to be installed. If necessary, delete or format
them beforehand (“delete” or “format” command), you can also create a new partition
(“new”).
9
Operating System Lab Rohit Kumar
BTCS404-18 2224525
Task - 2
a) FCFS
#include <iostream>
int wt[N];
wt[0] = 0;
<< "BT\t\tWT\n\n";
float average;
float sum = 0;
10
Operating System Lab Rohit Kumar
BTCS404-18 2224525
for (int i = 0; i < 5; i++) {
average = sum / 5;
<< average;
int main(){
int N = 5;
int at[] = { 0, 1, 2, 3, 4 };
int bt[] = { 4, 3, 1, 2, 5 };
return 0;
(b) SJF
#include <iostream>
11
Operating System Lab Rohit Kumar
BTCS404-18 2224525
int main() {
int A[100][4];
cin >> n;
A[i][0] = i + 1;
index = i;
index = j;
temp = A[i][1];
A[i][1] = A[index][1];
A[index][1] = temp;
temp = A[i][0];
A[i][0] = A[index][0];
A[index][0] = temp;
12
Operating System Lab Rohit Kumar
BTCS404-18 2224525
}
A[0][2] = 0;
A[i][2] = 0;
A[i][2] += A[j][1];
total += A[i][2];
avg_wt = (float)total / n;
total = 0;
total += A[i][3];
cout << "P" << A[i][0] << " " << A[i][1] << " " << A[i][2] << " "
<< A[i][3] << endl;
avg_tat = (float)total / n;
cout << "Average Waiting Time= " << avg_wt << endl;
cout << "Average Turnaround Time= " << avg_tat << endl;
13
Operating System Lab Rohit Kumar
BTCS404-18 2224525
Step 1. To download and install the VMware product, visit the official website of VMware.
https://www.vmware.com/in.html
Hover on the Downloads tab; here, you will find various products.
Workstation Player is for running a second OS on Windows or Linux PC for free for personal
use.
Step 2. Click on Free Product Trials & Demo >> Workstation Pro. You will be redirected to
the download page. (Similarly, you can select any product you want to install.)
14
Operating System Lab Rohit Kumar
BTCS404-18 2224525
Click on Download Now according to your Operating System. We have chosen Workstation
15 Pro for Windows.
While downloading, ensure you have a proper internet connection, as the file may be large.
Step 3. Once the download is complete, run the .exe to install VMware Workstation. A
popup will appear.
15
Operating System Lab Rohit Kumar
BTCS404-18 2224525
Step 6. On the next screen, It will ask for additional features; it is not mandatory to check this
box. Click on Next.
Step 7. On the next screen, some checkboxes are populated; check them as per your
requirement.
Click on Next.
16
Operating System Lab Rohit Kumar
BTCS404-18 2224525
Step 9. At this step, you can see installation taking place. The installation will take some
time; wait for it to install properly.
Step 10. Once the installation gets completed, you will see the following dialogue box. Click
on Finish. If you have purchased the product and have a license key, click on License to enter
the key.
17
Operating System Lab Rohit Kumar
BTCS404-18 2224525
Step 11. Upon Finishing, the window will close, and You can see VMware Workstation
installed icon on your Desktop.
Step 12. For the first time opening, if you have not entered the License key in step 7, it will
ask for a license key. You can go for the trial version, free for 15 to 30 days. Click on
Continue. Make sure you have Admin rights for this in Windows.
18
Operating System Lab Rohit Kumar
BTCS404-18 2224525
At this stage, you will get the final installation message. Click on Finish.
Download the VMWare Workstation application for your host operating system and install it
on your machine. The installation procedure is pretty simple and straight. Read
the documentation for more details. Open the app after installation. Create a new Virtual
Machine.
19
Operating System Lab Rohit Kumar
BTCS404-18 2224525
Download Ubuntu image. Edit the CD/DVD settings and import the downloaded Ubuntu
image.
20
Operating System Lab Rohit Kumar
BTCS404-18 2224525
21
Operating System Lab Rohit Kumar
BTCS404-18 2224525
22
Operating System Lab Rohit Kumar
BTCS404-18 2224525
23
Operating System Lab Rohit Kumar
BTCS404-18 2224525
SYNTAX -
cd [-LP] [directory]
2. Ls :
List all files in the current directory , in column format.
SYNTAX:-
ls[DIRECTORY]
3. cp :
Copy one or more files to another location Copy SOURCE to DEST, or
multiple SOURCE(s) to DIRECTORY.
SYNATX-
cp [options]... Source Dest
24
Operating System Lab Rohit Kumar
BTCS404-18 2224525
4. mkdir :
Create new folder(s), or directory if they do not already exist.
SYNTAX-
mkdir [Options] folder...
mkdir "Name with spaces"
5. rmdir :
Remove directory, this command will only work if the folders are empty.
Syntax -
rmdir [options]... folder(s)...
1. cat:
Create, read, write, or append the contents of a file.
SYNTAX-
cat [Options] [File]...
25
Operating System Lab Rohit Kumar
BTCS404-18 2224525
26