Skip to main content

Amazon D.E Student Offer

Click here for Getting Offer 

CS604 Assignment no 1 spring 2020

                                       CS604 ASSIGNMENT NO 1 WITH SOLUTION
TOTAL MARKS 20
Instructions:
Please read the following instructions carefully before submitting the assignment. It should be clear that your assignment will not get any credit if:

§  The assignment is submitted after the due date.
§  The submitted assignment does not open or file is corrupt.
§  Assignment is copied (partial or full) from any source (websites, forums, students, etc.)

Note: Lecture No. 1 to 6 are covered in this assignment. You have to upload only .doc file. Assignment in any other format (extension) will not be accepted and will be awarded with zero marks.

Objective:

The objective of this assignment is to provide hands on experience of:
§  To learn and understand the basic concept of an Operating System
§  To learn Directory  Structure of Operating System

For any query about the assignment, contact at CS604@vu.edu.pk
Assignment
Assignment Questions:

Question No 1                                                                                                            12 Marks

The following figure shows the directory structure in a UNIX/Linux system. Suppose a user Zulfiqar has a subdirectory Courses, under his home directory. This Courses directory contains subdirectories for the different courses that he has taken for teaching i.e. (CS204 and CS604).
If Zulfiqar is currently in the Courses directory then write UNIX/Linux commands to perform each of the following tasks.

Solution 

1.      How he can displays information about a current directory (including descendants) or files; wildcards supported?
~teacher \zulfiqar\courses #ls-i
2.      How he can change file access and modification times?
~teacher \zulfiqar\course #touch-a file1
~teacher \zulfiqar\course #ls-m file1
3.      How he can change directory and refer to the directory for cs604 course?
~teacher \zulfiqar\courses #cd cs604
4.      Right after the login, how he can concatenate or display files?
~teacher \zulfiqar\courses #cat file1.txt
~teacher \zulfiqar\courses # cat file1.txt file2.txt

5.      How he can display the absolute pathname of his working directory?
~teacher \zulfiqar\courses\cs604 #pwd

6.      How can he remove an empty directory under cs604 directory?
~teacher \zulfiqar\course\cs604 #rmdir slides


Question No 2                                                                                                            08 Marks

Draw three state transition diagram of the following:

1.      Diagram in which a process completes its execution with in its time line.
2.      Diagram in which process never block itself / never get blocked and completes its execution.

SOLUTION


Comments

  1. While working on CS604 Assignment No. 1 Spring 2020, many students focus only on the content and overlook the presentation. Using the correct assignment cover page format helps create a professional first impression and ensures your submission follows academic guidelines. A well-designed cover page with the required details makes your assignment organized, easier to review, and aligned with university expectations, which can positively influence the overall presentation.

    ReplyDelete

Post a Comment

Popular posts from this blog

VU Whatsapp groups links.

VU Non-official Whatsapp Groups Links. Apnay apnay Subject k hissab say Groups join krlain shukria. or list update hoti rahay ge lehaza visit krtay raheay ga. Thanks in advance. STA301 Spring 2020 https://chat.whatsapp.com/E0xPQw3bhR2K0tjOMUs9Tv VU MCS MIT BSCS PKSR03 https://chat.whatsapp.com/EkOlJytsh479LvhK7aDIQR CS402 https://chat.whatsapp.com/JnENG2gNIzE2U4OxGDP9Po VU STUDY GROUP https://chat.whatsapp.com/Jj6VTD6Sv3x1kxAJLBUrNo MCQS PAST PAPERS https://chat.whatsapp.com/F2JNeDrbK025oT0xQZ0sU8 English can be FUN https://chat.whatsapp.com/Lrpzj6yOiSh6qFA2P41Uzp MCS https://chat.whatsapp.com/GzF8qvUOUT7K44rw1Fh0Mu EDU  https://chat.whatsapp.com/BoMTTkdPZiRDCCu0GtEO9m VU NEW STUDENTS https://chat.whatsapp.com/I2liS4ZIaVTBCDDw4CsZYD VU CS IT SE Study Group  https://chat.whatsapp.com/LHp256sWNbZLU63awqNfIr VU English Study Group  https://chat.whatsapp.com/FRQW5fWBcx6Fq9fHHROJXd VU Math Study Group  https://chat.whatsapp.com/HJIf6g84nrsGEEAQ0RBhC0 VU BBA MBA study Gro...

Amazon D.E Student Offer

Click here for Getting Offer