Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Pro Blog
  • Users
  • Groups
  • Unsolved
  • Solved
Collapse
Secnto AI
  1. Secnto AI
  2. Categories
  3. Virtual University
  4. CS703 - Advanced Operating Systems
  5. CS703 Assignment 2 Solution and Discussion
CS703 Assignment 3 Solution and Discussion
zareenZ
CS703 – Advanced Operating Systems Due Date: 22-1-2020 Assignment 3 Instructions to Solve Assignments The purpose of assignments is to give you hands on practice. It is expected that students will solve the assignments themselves. Following rules will apply during the evaluation of assignment. • Cheating from any source will result in zero marks in the assignment. • Any student found cheating in any two of the assignments submitted will be awarded “F” grade in the course. • No assignment after due date will be accepted. Question 1: Total Points (25) There are four memory blocks partitions B1, B2, B3 and B4 in a system having sizes {100, 500, 200, 300, and 600} and there are four processes P1, P2, P3 and P4 having following sizes {212, 417, 112, 426}; Arrange the above given process using Best Fit Algorithm. Show diagrammatically the allocation of processes in the memory blocks Question 2: Total Points (10) Write down the functionality of the given UNIX system commands. Commands Functionality netstat time ps uptime vmstat gprof prof top chgrp touch Question 3: Total Points (10+10=20) Read the paper titled “A Study of Real-time Memory Management: Evaluating Operating System’s Performance” ”, and answer the following questions: (a) Write the brief summary of the given paper. (b) Write a short note on the memory allocators working Linux, Mac and Windows operating systems discussed in the mentioned paper. Note: Research paper is available in the zip folder.
CS703 - Advanced Operating Systems
CS703 Assignment 2 Solution and Discussion
zareenZ
CS703 – Advanced Operating Systems Due Date: 4-12-2019 Total Marks 50 Assignment 2 Instructions to Solve Assignments The purpose of assignments is to give you hands on practice. It is expected that students will solve the assignments themselves. Following rules will apply during the evaluation of assignment. • Cheating from any source will result in zero marks in the assignment. • Any student found cheating in any two of the assignments submitted will be awarded “F” grade in the course. • No assignment after due date will be accepted. 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 Question 2: Total Points (10) Calculate the Average Waiting Time for four processes. Assume that Processes arrives in the given sequence P1, P2, P4 and P3 at time=0 and scheduling algorithm applied is FCFS. Processes CPU Burst P1 5 P2 4 P3 2 P4 3 Question 3: Total Points (15+15=30) Read the paper titled “Boosting the Cloud Meta-Operating System with Heterogeneous Kernels. A Novel Approach Based on Containers and Micro services” ”, and answer the following questions: (a) Write the brief summary of the given paper. (b) Write a short note on the Meta Operating system discussed in the paper. Note: Research paper is available in the zip folder.
CS703 - Advanced Operating Systems
CS703 Assignment 1 Solution and Discussion
zareenZ
CS703 – Advanced Operating Systems Due Date: 14-11-2019 Assignment 1 Instructions to Solve Assignments The purpose of assignments is to give you hands on practice. It is expected that students will solve the assignments themselves. Following rules will apply during the evaluation of assignment. • Cheating from any source will result in zero marks in the assignment. • Any student found cheating in any two of the assignments submitted will be awarded “F” grade in the course. • No assignment after due date will be accepted. Question 1: Total Points (10) The maximum number of pages in process address space is one million and the total address size (p +d) of process address space is 32- bit with page size of 4096 bytes. Calculate the number of bits required for page number (p) and the number of bits required for offset (d)? Question 2: Total Points (10+5) a) Write a program using C/C++ to search the particular key element in the parent process and print the key to be searched in child process. Hint: use fork( ) , Array b) What will be the output of the following? #include <stdio.h> #include <unistd.h> int main() { if (fork() && (!fork())) { if (fork() || fork()) { fork(); } } printf("@ "); return 0; } Question 3: Total Points (15+10=25) Read the paper titled “A Review of Lightweight Thread Approaches for High Performance Computing” ”, and answer the following questions: (a) Write the brief summary of the given paper. (b) Write a short note on the features of the lightweight (LWT) libraries discussed in the mentioned paper. Note: Research paper is available in the zip folder.
CS703 - Advanced Operating Systems

CS703 Assignment 2 Solution and Discussion

Scheduled Pinned Locked Moved Solved CS703 - Advanced Operating Systems
cs703assignment 2solutiondiscussionfall 2019
4 Posts 1 Posters 965 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • zareenZ Offline
    zareenZ Offline
    zareen
    Cyberian's Gold
    wrote on last edited by zareen
    #1

    CS703 – Advanced Operating Systems

    Due Date: 4-12-2019
    Total Marks 50

    Assignment 2

    Instructions to Solve Assignments

    The purpose of assignments is to give you hands on practice. It is expected that students will solve the assignments themselves. Following rules will apply during the evaluation of assignment.

    • Cheating from any source will result in zero marks in the assignment.
    • Any student found cheating in any two of the assignments submitted will be awarded “F” grade in the course.
    • No assignment after due date will be accepted.

    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

    Question 2: Total Points (10)

    Calculate the Average Waiting Time for four processes. Assume that Processes arrives in the given sequence P1, P2, P4 and P3 at time=0 and scheduling algorithm applied is FCFS.

    Processes CPU Burst
    P1 5
    P2 4
    P3 2
    P4 3

    Question 3: Total Points (15+15=30)
    Read the paper titled “Boosting the Cloud Meta-Operating System with Heterogeneous Kernels. A Novel Approach Based on Containers and Micro services”
    ”, and answer the following questions:
    (a) Write the brief summary of the given paper.
    (b) Write a short note on the Meta Operating system discussed in the paper.
    Note: Research paper is available in the zip folder.

    Discussion is right way to get Solution of the every assignment, Quiz and GDB.
    We are always here to discuss and Guideline, Please Don't visit Cyberian only for Solution.
    Cyberian Team always happy to facilitate to provide the idea solution. Please don't hesitate to contact us!
    %(red)[NOTE: Don't copy or replicating idea solutions.]
    Quiz Copy Solution
    Mid and Final Past Papers
    Live Chat

    zareenZ 3 Replies Last reply
    0
    • zareenZ zareen

      CS703 – Advanced Operating Systems

      Due Date: 4-12-2019
      Total Marks 50

      Assignment 2

      Instructions to Solve Assignments

      The purpose of assignments is to give you hands on practice. It is expected that students will solve the assignments themselves. Following rules will apply during the evaluation of assignment.

      • Cheating from any source will result in zero marks in the assignment.
      • Any student found cheating in any two of the assignments submitted will be awarded “F” grade in the course.
      • No assignment after due date will be accepted.

      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

      Question 2: Total Points (10)

      Calculate the Average Waiting Time for four processes. Assume that Processes arrives in the given sequence P1, P2, P4 and P3 at time=0 and scheduling algorithm applied is FCFS.

      Processes CPU Burst
      P1 5
      P2 4
      P3 2
      P4 3

      Question 3: Total Points (15+15=30)
      Read the paper titled “Boosting the Cloud Meta-Operating System with Heterogeneous Kernels. A Novel Approach Based on Containers and Micro services”
      ”, and answer the following questions:
      (a) Write the brief summary of the given paper.
      (b) Write a short note on the Meta Operating system discussed in the paper.
      Note: Research paper is available in the zip folder.

      zareenZ Offline
      zareenZ Offline
      zareen
      Cyberian's Gold
      wrote on last edited by
      #2

      @zareen said in CS703 Assignment 2 Solution and Discussion:

      a) Turnaround Time per process.

      Turnaround time - Time required for a particular process to complete, from submission time to completion. ( Wall clock time. )

      Discussion is right way to get Solution of the every assignment, Quiz and GDB.
      We are always here to discuss and Guideline, Please Don't visit Cyberian only for Solution.
      Cyberian Team always happy to facilitate to provide the idea solution. Please don't hesitate to contact us!
      %(red)[NOTE: Don't copy or replicating idea solutions.]
      Quiz Copy Solution
      Mid and Final Past Papers
      Live Chat

      1 Reply Last reply
      0
      • zareenZ zareen

        CS703 – Advanced Operating Systems

        Due Date: 4-12-2019
        Total Marks 50

        Assignment 2

        Instructions to Solve Assignments

        The purpose of assignments is to give you hands on practice. It is expected that students will solve the assignments themselves. Following rules will apply during the evaluation of assignment.

        • Cheating from any source will result in zero marks in the assignment.
        • Any student found cheating in any two of the assignments submitted will be awarded “F” grade in the course.
        • No assignment after due date will be accepted.

        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

        Question 2: Total Points (10)

        Calculate the Average Waiting Time for four processes. Assume that Processes arrives in the given sequence P1, P2, P4 and P3 at time=0 and scheduling algorithm applied is FCFS.

        Processes CPU Burst
        P1 5
        P2 4
        P3 2
        P4 3

        Question 3: Total Points (15+15=30)
        Read the paper titled “Boosting the Cloud Meta-Operating System with Heterogeneous Kernels. A Novel Approach Based on Containers and Micro services”
        ”, and answer the following questions:
        (a) Write the brief summary of the given paper.
        (b) Write a short note on the Meta Operating system discussed in the paper.
        Note: Research paper is available in the zip folder.

        zareenZ Offline
        zareenZ Offline
        zareen
        Cyberian's Gold
        wrote on last edited by
        #3

        @zareen said in CS703 Assignment 2 Solution and Discussion:

        b) Average Turnaround time of processes

        Waiting time - How much time processes spend in the ready queue waiting their turn to get on the CPU.

        ( Load average - The average number of processes sitting in the ready queue waiting their turn to get into the CPU. Reported in 1-minute, 5-minute, and 15-minute averages by "uptime" and "who". )
        

        Discussion is right way to get Solution of the every assignment, Quiz and GDB.
        We are always here to discuss and Guideline, Please Don't visit Cyberian only for Solution.
        Cyberian Team always happy to facilitate to provide the idea solution. Please don't hesitate to contact us!
        %(red)[NOTE: Don't copy or replicating idea solutions.]
        Quiz Copy Solution
        Mid and Final Past Papers
        Live Chat

        1 Reply Last reply
        0
        • zareenZ zareen

          CS703 – Advanced Operating Systems

          Due Date: 4-12-2019
          Total Marks 50

          Assignment 2

          Instructions to Solve Assignments

          The purpose of assignments is to give you hands on practice. It is expected that students will solve the assignments themselves. Following rules will apply during the evaluation of assignment.

          • Cheating from any source will result in zero marks in the assignment.
          • Any student found cheating in any two of the assignments submitted will be awarded “F” grade in the course.
          • No assignment after due date will be accepted.

          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

          Question 2: Total Points (10)

          Calculate the Average Waiting Time for four processes. Assume that Processes arrives in the given sequence P1, P2, P4 and P3 at time=0 and scheduling algorithm applied is FCFS.

          Processes CPU Burst
          P1 5
          P2 4
          P3 2
          P4 3

          Question 3: Total Points (15+15=30)
          Read the paper titled “Boosting the Cloud Meta-Operating System with Heterogeneous Kernels. A Novel Approach Based on Containers and Micro services”
          ”, and answer the following questions:
          (a) Write the brief summary of the given paper.
          (b) Write a short note on the Meta Operating system discussed in the paper.
          Note: Research paper is available in the zip folder.

          zareenZ Offline
          zareenZ Offline
          zareen
          Cyberian's Gold
          wrote on last edited by zareen
          #4

          @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.
          8b22675b-ab0c-43e8-b79b-c0981fd55469-image.png
          8954e572-dbbd-4b40-a2f6-8949dfcfebf8-image.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.

          Discussion is right way to get Solution of the every assignment, Quiz and GDB.
          We are always here to discuss and Guideline, Please Don't visit Cyberian only for Solution.
          Cyberian Team always happy to facilitate to provide the idea solution. Please don't hesitate to contact us!
          %(red)[NOTE: Don't copy or replicating idea solutions.]
          Quiz Copy Solution
          Mid and Final Past Papers
          Live Chat

          1 Reply Last reply
          0

          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          How to Build a $1,000/Month PAK VS BAN Live Live Cricket Streaming
          File Sharing
          Earn with File Sharing

          0

          Online

          3.0k

          Users

          2.8k

          Topics

          8.2k

          Posts
          solution
          1235
          discussion
          1195
          fall 2019
          813
          assignment 1
          428
          assignment 2
          294
          spring 2020
          265
          gdb 1
          238
          assignment 3
          79
          • PM. IMRAN KHAN
            undefined
            4
            1
            4.0k

          • Are the vaccines halal or not?
            undefined
            4
            1
            3.8k

          • All Subjects MidTerm and Final Term Solved Paper Links Attached Please check moaaz past papers
            zaasmiZ
            zaasmi
            3
            26
            75.1k

          • CS614 GDB Solution and Discussion
            M
            moaaz
            3
            3
            8.1k

          • How can I receive Reputation earning from Cyberian? 100% Discount on Fee
            Y
            ygytyh
            3
            28
            23.9k
          | |
          Copyright © 2010-26 RUP Technologies LLC. USA | Contributors | Privacy | Terms
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Pro Blog
          • Users
          • Groups
          • Unsolved
          • Solved