Skip to content
  • 0 Votes
    2 Posts
    1k Views
    zareenZ
    Q.1 Solution: [image: zzGPGn7.png][image: T6FX2Tw.png] Q.2 Solution: [image: b1LBlJY.png]
  • 0 Votes
    1 Posts
    438 Views
    No one has replied
  • 0 Votes
    4 Posts
    1k Views
    zareenZ
    @zareen said in CS703 Assignment 2 Solution and Discussion: Question 1: Total Points (10) Consider performance of FCFS algorithm for three computer-bound processes. If process P1 takes 25 seconds, P2 takes 4 seconds and P3 takes 5 seconds and processes arrive in the given order P1, P2, P3. You need to calculate the following: a) Turnaround Time per process. b) Average Turnaround time of processes Ideas Solution Example Scheduling Algorithms The following subsections will explain several common scheduling strategies, looking at only a single CPU burst each for a small number of processes. Obviously real systems have to deal with a lot more simultaneous processes executing their CPU-I/O burst cycles. 6.3.1 First-Come First-Serve Scheduling, FCFS FCFS is very simple - Just a FIFO queue, like customers waiting in line at the bank or the post office or at a copying machine. Unfortunately, however, FCFS can yield some very long average wait times, particularly if the first process to get there takes a long time. For example, consider the following three processes: Process Burst Time P1 24 P2 3 P3 3 In the first Gantt chart below, process P1 arrives first. The average waiting time for the three processes is ( 0 + 24 + 27 ) / 3 = 17.0 ms. In the second Gantt chart below, the same three processes have an average wait time of ( 0 + 3 + 6 ) / 3 = 3.0 ms. The total run time for the three bursts is the same, but in the second case two of the three finish much quicker, and the other process is only delayed by a short amount. [image: TV7WiE2.png] [image: DajZZHZ.png] FCFS can also block the system in a busy dynamic system in another way, known as the convoy effect. When one CPU intensive process blocks the CPU, a number of I/O intensive processes can get backed up behind it, leaving the I/O devices idle. When the CPU hog finally relinquishes the CPU, then the I/O processes pass through the CPU quickly, leaving the CPU idle while everyone queues up for I/O, and then the cycle repeats itself when the CPU intensive process gets back to the ready queue.
  • 0 Votes
    1 Posts
    531 Views
    No one has replied
  • 0 Votes
    4 Posts
    1k Views
    zaasmiZ
    @zareen said in CS603 Assignment No. 2 Solution and Discussion: Draw an ACTIVITY diagram for the above scenario. Steps to develop Activity Diagrams The steps below outline the major steps to take in creating a UML Activity Diagram. Finding system Actors, Classes and use cases Identifying key scenarios of system use cases Combining the scenarios to produce comprehensive workflows described using activity diagrams Where significant object behavior is triggered by a workflow, adding object flows to the diagrams Where workflows cross technology boundaries, using swimlanes to map the activities Refining complicated high level activities similarly, nested activity diagrams
  • 0 Votes
    9 Posts
    3k Views
    zareenZ
    Typical, approximate, values for latency that you might experience include: 800ms for satellite 120ms for 3G cellular data 60ms for 4G cellular data which is often used for 4G WAN and internet connections 20ms for an mpls network such as BT IP Connect, when using Class of Service to prioritise traffic 10ms for a modern Carrier Ethernet network such as BT Ethernet Connect or BT Wholesale Ethernet in the UK Ideas Solution provided, if you are unable to solve please contact in chat Room
  • 0 Votes
    5 Posts
    1k Views
    zaasmiZ
    Assignment No. 01 Semester: Spring 2020 CS432 –Network modeling and simulation Total Marks: 20 Due Date: 21/05/2020 Assignment Objectives: • To enhance the knowledge of use cases as part of simulation building process • To improve the learning of creation of the project in Omnet ++ simulation tool. Uploading instructions: • Your assignment must be in .doc format (Any other formats like scan images, PDF, bmp, etc will not be accepted). • No assignment will be accepted through email. Rules for Marking: It should be clear that your assignment will not get any credit if: • The assignment is submitted after due date. • The submitted assignment does not open or file is corrupted. • Your assignment is copied from internet, handouts or from any other student (Strict disciplinary action will be taken in this case). Assignment Question No. 1 [Marks: 10] You are required to install OMNET++ in your system and write down all installation steps. When installation is completed, do the following tasks: • Open OMNET++ IDE. • Create a new empty project. • Give your VUID as project name. • After creation of project takes a snapshot of the newly created project, in which your VUID is shown as project name. Sample of snapshot is given as under. [image: aZawHZe.png] Note: Installation guide is available in download section on VULMS. Question No. 2 [Marks: 10] Following is a XYZ University Registration System’s use case. You are required to identify and define the Simulation Building Process activities (Entities, states, Events) of given use case. [image: NlBECcZ.png] Deadline: Your assignment must be uploaded/submitted on or before 21st May 2020.
  • 0 Votes
    2 Posts
    793 Views
    zareenZ
    Solution Ideas: Write XML Schema (.xsd) code for the given XML Answer XSD Code <?xml version="1.0" encoding="utf-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="BookStore"> <xs:complexType> <xs:sequence> <xs:element name="Book" maxOccurs="unbounded"> <xs:complexType> <xs:sequence> <xs:element name="Title" type="xs:string"/> <xs:element name="Course" type="xs:string"/> <xs:element name="Year" type="xs:unsignedShort"/> <xs:element name="Publisher" type="xs:string"/> <xs:element name="Author" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> Generate the following XML on a server as output using PHP Answer PHP CODE <?php header("Content-type: text/xml"); echo"<BookStore>"; echo"<Book>"; echo"<Title>Introduction to Computing</Title>"; echo"<Course>CS101</Course>"; echo"<Year>2016</Year>"; echo"<Publisher>Virtual University of Pakistan </Publisher>"; echo"<Author>Dr Tanveer Ahmad</Author>"; echo"</Book>"; echo"<Book>"; echo"<Title>Object Oriented Programming</Title>"; echo"<Course>CS304</Course>"; echo"<Year>2017</Year>"; echo"<Publisher>Virtual University of Pakistan</Publisher>"; echo"<Author>Dr Shafeeq</Author>"; echo"</Book>"; echo"</BookStore>"; ?> PHP OUTPUT
  • 0 Votes
    3 Posts
    918 Views
    zareenZ
    @zareen said in CS001 Assignment 2 Solution and Discussion: Question No 01 7 marks Suppose you are running an online bookstore; you are required to write a commercial sales letter to one of your customers (Letter format has been well explained through a template/figure below) using Microsoft Word. Consider the following requirements while writing the letter: • Insert the system date and time at the specified location. • Insert a hyperlink on “Fast Courier ®” of address www.fastcourier.com.pk • Insert a table stating customer’s complete order details. How to Insert today’s date and Time On the Insert tab, in the Text group, click Date & Time. In the Date and time dialog box, select the format you want and click OK. The date is inserted as text. Insert Hyperlink in MS Word Select the text or picture that you want to display as a hyperlink. On the Insert tab, click Hyperlink. You can also right-click the text or picture and click Hyperlink on the shortcut menu. In the Insert Hyperlink box, type or paste your link in the Address box. [image: VyutbSP.png]
  • 0 Votes
    1 Posts
    620 Views
    No one has replied
  • 0 Votes
    2 Posts
    689 Views
    zareenZ
    Solution: a) Court Beat. b) Trade and Commerce/Business. c) General Beat. d) Sports Beat. e) Entertainment Beat. Sources were required as mentioned at the link:
  • 0 Votes
    1 Posts
    387 Views
    No one has replied
  • 0 Votes
    1 Posts
    457 Views
    No one has replied
  • 0 Votes
    1 Posts
    494 Views
    No one has replied
  • 0 Votes
    2 Posts
    788 Views
    zareenZ
    Q. 1 Solution: [image: qAdyvAZ.png] Q. 2 Solution: [image: EwHyW8P.png]
  • 0 Votes
    3 Posts
    869 Views
    zareenZ
    @zareen said in EDU304 Assignment 1 Solution and Discussion: Explain types of guidance and counseling also describe why the need of Guidance and Counseling arise in academic setting? (4+4+4= 12 Marks) Idea Solutionz
Reputation Earning
How to Build a $1,000/Month World CUP LIVE Matches Live Cricket Streaming
Ads
File Sharing
Stats

2

Online

3.0k

Users

2.8k

Topics

8.6k

Posts
Popular Tags
Online User
| |