<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Topics tagged with cs604]]></title><description><![CDATA[A list of topics that have been tagged with cs604]]></description><link>https://community.secnto.com//tags/cs604</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 19:57:27 GMT</lastBuildDate><atom:link href="https://community.secnto.com//tags/cs604.rss" rel="self" type="application/rss+xml"/><pubDate>Invalid Date</pubDate><ttl>60</ttl><item><title><![CDATA[CS604 Assignment 3 Solution and Discussion]]></title><description><![CDATA[idea solution plz
]]></description><link>https://community.secnto.com//topic/2001/cs604-assignment-3-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/2001/cs604-assignment-3-solution-and-discussion</guid><dc:creator><![CDATA[Ch. Robika]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS604 Assignment 2 Solution and Discussion Spring 2020]]></title><description><![CDATA[@zaasmi said in CS604 Assignment 2 Solution and Discussion Spring 2020:

Re: CS604 Assignment 2 Solution and Discussion
Operating Systems (CS604)
Assignment # 02
Spring 2020	
Total marks = 15
Deadline Date
14th June 2020
Please carefully read the following instructions before attempting assignment.
RULES FOR MARKING
It should be clear that your assignment would not get any credit if:
	The assignment is submitted after the due date.
	The submitted assignment does not open or file is corrupt.
	Strict action will be taken if submitted solution is copied from any other student or from the internet.
You should consult the recommended books to clarify your concepts as handouts are not sufficient.
You are supposed to submit your assignment in .doc or docx format.
Any other formats like scan images, PDF, zip, rar, ppt and bmp etc will not be accepted.
Objective:
•	The objective of this assignment is to learn scheduling algorithm.
•	To learn and understand different Operating System structure.
NOTE
No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date.
If you find any mistake or confusion in assignment (Question statement), please consult with your instructor before the deadline. After the deadline no queries will be entertained in this regard.
For any query, feel free to email at:
cs604@vu.edu.pk
Question No 01								         15 marks
Consider the following set of processes, with the CPU burst time given in milliseconds:
Process		 Burst Time 	
P1			   10 			   	
P2 			   1 			 	
P3 			   2 			  	
P4 			   1			 	
P5 			   5
The processes are arrived in the order P1, P2, P3, P4, P5, all at time 0.
A.	Draw Gantt chart showing the execution of these processes using FCFS and SJF scheduling.	
B.	Calculate the turnaround time of each process for FCFS scheduling algorithm as per part Calculation of part A?	
C.	Calculate the waiting time of each process for SJF scheduling algorithm as per calculation of Part A?
Wish you very Best of Luck!

CS604_2_Sol_S20_cyberian.pk_.docx
]]></description><link>https://community.secnto.com//topic/1893/cs604-assignment-2-solution-and-discussion-spring-2020</link><guid isPermaLink="true">https://community.secnto.com//topic/1893/cs604-assignment-2-solution-and-discussion-spring-2020</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS604 GDB 1 solution and discussion Fall-2019]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/317/cs604-gdb-1-solution-and-discussion">CS604 GDB 1 solution and discussion</a></p>
]]></description><link>https://community.secnto.com//topic/1446/cs604-gdb-1-solution-and-discussion-fall-2019</link><guid isPermaLink="true">https://community.secnto.com//topic/1446/cs604-gdb-1-solution-and-discussion-fall-2019</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS604 Assignment 3 Solution and Discussion]]></title><description><![CDATA[@zareen said in CS604 Assignment 3 Solution and Discussion:

Question No 02							                   12 Marks
Suppose a computer lab comprises of two printers, three scanners, and four ROM writers. There are three programs currently running on some computer. Assume program P1 is currently allocated a printer and two ROM writers and it is waiting for a scanner. Program P2 is allocated a scanner and it is waiting for a printer. Program P3 is allocated two ROM writers, a scanner, and a printer. Draw the corresponding resource allocation graph for these three programs. Also specify if the system is in a deadlocked state or not?

[image: fEvrDBH.png]
The system is not in deadlock state as it is clear from the above graph it is multi instance and circular weight.
]]></description><link>https://community.secnto.com//topic/1032/cs604-assignment-3-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/1032/cs604-assignment-3-solution-and-discussion</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS604 Assignment 1 Solution and Discussion]]></title><description><![CDATA[Solution:
Q. 1 Answer:
As a process executes, it changes states. The state of a process is defined in part by the current activity of that process. Given below are current and next states of process. According to your understanding, what can be condition that changes one state into another:



Sr #
Current State -&gt; Next State
Conditions




1
Ready-&gt;Running
Scheduler Dispatch


2
Waiting-&gt;Ready
I/O or Event Completion


3
Running-&gt;Terminated
Exit


4
Running-&gt;Ready
Interrupt


5
New-&gt;Ready
Admitted



Q.2 Answer:
The following table contains the list of operations. Write down the Linux commands along with their screenshots for performing these operations:



List of Operations




List the contents of files to the terminal window.


Change the owner and group owner of a file.


Compares two text files and show the differences between them


Print a string of text to the terminal window.


Change the password for a user.



You are required to run the respective commands on Ubuntu and provide relevant screen shots of the list of operations as stated in above table.



Sr #
List of Operations
Command




1
List the contents of files to the terminal window.
cat


2
Change the owner and group owner of a file.
chown


3
Compares two text files and show the differences between them
diff


4
Print a string of text to the terminal window.
echo


5
Change the password for a user.
passwd



]]></description><link>https://community.secnto.com//topic/615/cs604-assignment-1-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/615/cs604-assignment-1-solution-and-discussion</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS604 Assignment 2 Solution and Discussion]]></title><description><![CDATA[Solution:
Q. 1 Answer



P0
P4
P3
P2
P1
P5




0
2
5
9
10
16
24



Total Waiting Time = 0+2+5+1+10+16 = 34 Seconds
Average Waiting Time = 34/6 = 5.66 Seconds
Q.2 Answer:
Solution 1:



P0
P1
P3
P0
P2
P3
P2
P3
P2
P2




0
8
16
24
31
39
47
55
57
65
66



Turnaround time= Exit Time- Arrival Time
Turnaround time for P0 = 31-0 =    31
P1 = 16-4 = 	12
P2 = 66-18 = 	48
P3 = 57- 5= 	52
Total Turnaround Time = 39+12+48+52 = 143
Average Turnaround Time = 143 / 4 =35.75 millisecond
Waiting Time= Turnaround Time- Burst Time
Waiting time for 	P0 = 31-15 =	16
P1 = 12-8 = 	4
P2 = 48-25 = 	23
P3 = 52-18 = 	34
Total Waiting Time = 16+4+23+34 =77
Average Waiting Time = 77 / 4 =19.25 millisecond
Solution 2:



P0
P1
P3
P2
P0
P3
P2
P3
P2
P2




0
8
16
24
31
39
47
55
57
65
66



Turnaround time= Exit Time- Arrival Time
Turnaround time for    P0 = 39-0 = 	39
P1 = 16-4 = 	12
P2 = 66-18 = 	48
P3 = 57- 5= 	52
Total Turnaround Time = 39+12+48+52 = 151
Average Turnaround Time = 151 / 4 =37.75 millisecond
Waiting Time= Turnaround Time- Burst Time
Waiting time for 	P0 = 39-15 =	24
P1 = 12-8= 	4
P2 = 48-25= 	23
P3 = 52-18 = 	34
Total Waiting Time = 24+0+5+29 = 85
Average Waiting Time = 85 / 4 =21.25 millisecond
]]></description><link>https://community.secnto.com//topic/580/cs604-assignment-2-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/580/cs604-assignment-2-solution-and-discussion</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS604 GDB 1 solution and discussion]]></title><description><![CDATA[@zaasmi Mobile operating system like Android, ios, kindal,  Bada, Black berry, Microsoft is an open mobile operating system with massive user/employee base and simplified mobile app development process. Enterprises are leveraging Android or etc and creating custom mobile apps that solves problems and increase value for their business. The mobile os is best for the organization because the every person have the smart phone, and the app is the Develop in low cost.
]]></description><link>https://community.secnto.com//topic/317/cs604-gdb-1-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/317/cs604-gdb-1-solution-and-discussion</guid><dc:creator><![CDATA[zaasmi]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[CS604 Assignment # 03  Solution and Discussion]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1563374101770-66aa4c6d-8d94-4d53-89e7-ab7904f822a1-image.png" alt="66aa4c6d-8d94-4d53-89e7-ab7904f822a1-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Operating Systems (CS604)<br />
Assignment # 03 Spring 2019</p>
<p dir="auto">Total marks = 20</p>
<p dir="auto">Deadline Date     23rd July, 2019</p>
<p dir="auto">Please carefully read the following instructions before attempting assignment.</p>
<p dir="auto">RULES FOR MARKING<br />
It should be clear that your assignment would not get any credit if:<br />
♣	The assignment is submitted after the due date.<br />
♣	The submitted assignment does not open or file is corrupt.<br />
♣	Strict action will be taken if submitted solution is copied from any other student or from the internet.</p>
<p dir="auto">You should consult the recommended books to clarify your concepts as handouts are not sufficient.</p>
<p dir="auto">You are supposed to submit your assignment in .doc or docx format.<br />
Any other formats like scan images, PDF, zip, rar, ppt and bmp etc will not be accepted.</p>
<p dir="auto">Objective:<br />
•	The objective of this assignment is to provide hands on experience of:<br />
•	To learn and understand deadlock algorithms in Operating System</p>
<p dir="auto">NOTE</p>
<p dir="auto">No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date.</p>
<p dir="auto">If you find any mistake or confusion in assignment (Question statement), please consult with your instructor before the deadline. After the deadline no queries will be entertained in this regard.</p>
<p dir="auto">For any query, feel free to email at:<br />
<a href="mailto:cs604@vu.edu.pk" target="_blank" rel="noopener noreferrer nofollow ugc">cs604@vu.edu.pk</a></p>
<p dir="auto">Question No 1					                                    15 Marks<br />
Consider the below given snapshot of the system. P1 to P5 represent the 5 processes currently running on the system. M, N, O and P represent the resources whereas M, N, O and P have 13, 11, 9 and 16 instances respectively.<br />
<img src="/assets/uploads/files/1563374149897-81858d3b-c30e-4b21-93b8-bb96c3476b68-image.png" alt="81858d3b-c30e-4b21-93b8-bb96c3476b68-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Considering the given snapshot, answer the following questions using the banker’s algorithm:<br />
(a)	What will be the content of the matrix Available?                              5 Marks<br />
(b)	What will be the content of the matrix Need?                                     5 Marks<br />
©	Is the system in a safe state Yes/No? If yes, then identify the safe sequence.  5 Marks</p>
<p dir="auto">Question No 2                                                                                                 5 Marks<br />
Consider the following resource allocation graph. Is there any deadlock in this graph or not? If yes, then mention the dead lock sequence.</p>
<p dir="auto"><img src="/assets/uploads/files/1563374179276-5f0c00bb-3c13-45e5-8c8b-aa638a964522-image.png" alt="5f0c00bb-3c13-45e5-8c8b-aa638a964522-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.secnto.com//topic/213/cs604-assignment-03-solution-and-discussion</link><guid isPermaLink="true">https://community.secnto.com//topic/213/cs604-assignment-03-solution-and-discussion</guid><dc:creator><![CDATA[zaasmi]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>