You are on page 1of 9

National University of Technology

Department of Computer Science


CS4012 Database Systems Lab

Instructor Name: Madam Tabinda Grade:


Batch: 2018 Session: Spring 2021
Assessment Type: Inlab+Postlab Assessment No. 05
Student Name: Ansar Iqbal Registration No. F18605005

Q. This Lab Report is consist of 2 part

1. INLAB (Page No 1 to 4)
2. POST LAB (Page No 4 and so on)

INLAB
PS Command:

PS X

Page |1
Ps –fU ansar

ps –fp 1477

top command:

Page |2
Pstree Command

Kill command

Vmstat 3:

Page |3
G++ installation:

G++ updates:

Page |4
Creating hello.cpp file using Gedit command:

Display the output:

Creating Hello.cpp file:

POST LAB

Task 1:
This activity is related to process monitoring in Linux
1. Display all of the process in current shell
2. Display every active process in the system
3. Provide a full-format listing of process owned by you
4. Display a full-format listing of processes owned by user ubuntu
5. Display a process with id 1
6. Display the dynamic view of the current processes in the system and set the refresh
interval 0.5 second

Page |5
7. Display the dynamic view of the processes owned by user with id 999 (or name
ubuntu)
8. Start the gedit program in background and then bring it foreground
9. Suspend the gedit program
10. Resume the gedit program

SOLUTION
1. Display all of the process in current shell

2. Display every active process in the system

3. Provide a full-format listing of process owned by you

Page |6
4. Display a full-format listing of processes owned by user Ubuntu

5. Display a process with id 1

6. Display the dynamic view of the current processes in the system and set the refresh
interval 0.5 second

Page |7
7. Display the dynamic view of the processes owned by user with id 999 (or name
ubuntu)

8. Start the gedit program in background and then bring it foreground

9. Suspend the gedit program

10. Resume the gedit program

Task 2:

Perform the following tasks


1. Start the gedit program with priority 90
2. Reset the priority of gedit to 65

1. Start the gedit program with priority 90

2. Reset the priority of gedit to 65

Page |8
<***************************END**************************>

Page |9

You might also like