SlideShare a Scribd company logo
1 of 5
Download to read offline
1. In OS, multiple jobs can run in parallel and finish faster than if they had run sequentially.
Suppose that two jobs, each of which needs 10 minutes of CPU time, start simultaneously. How
long will the last one take to complete if they run sequentially? How long if they run in parallel?
Assume 80% I/O wait.
solution:
80% I/O wait time means that a process is not in execution(i.e. CPU is sitting idle) for 80% of
the total time a process requires from CPU to complete itself(its execution). 80% I/O time means
it needs 80% of total execution time(10 minutes) to complete its I/O.
80%=80/100 = .8
Sequential execution
thus the time needed to complete a process which requires 10 minute of CPU will be = CPU time
required by process/CPU utilization=
10/CPU utilization= 10/0.2 = 50 minutes.
when two processes run sequentially(one after the other) then the total time required will be =
10/0.02 + 10/0.2 = 50+50=100 minutes
In case of parallel execution we again find the CPU utilization.. since two processes are in
parallel thus the formulae becomes-->
{1-(I/O time)^no. of processes in parallel execution} =1-(0.8)^2= 1-.64=0.36 now the CPU
utilization for 1 process will be 0.36/2=0.18 Therefore the time required will be = CPU time
required by process/CPU utilization= 10/0.18=55.5556(approx.) minutes.
Since the two processes are running in parallel thus the time required by 1 process will be the
total time required by 2 process=55.5556 minutes.
2. Explain the difference between a virus and a worm? How do they each reproduce?
solution:
The main difference between virus and worm is that, computer virus only spreads when a user
opens some affected file whereas computer worm spreads even without the knowledge of the
user. In addition to that, a computer virus can corrupt files, folders, etc. whereas worm does not
harm any file instead it creates additional space, files, shortcuts.
Firstly, let’s see what is Computer Virus?
A piece of code or a small program which is written to make change to the functions of
computer, without the knowledge of user is known as a computer virus. Basically, computer
virus carries two of the criteria, they are-
Viruses are designed by hackers, so they are different from one or the other. Some of the virus
are programmed in a way to damage your computer by infecting its program or deleting the files
or even reformatting the hard disk. Some others are only to play mischief, so you can know
something has gone wrong with your computer like, damaging or changing your audio, video or
text files by their infected files. Though some of the problems are small but still it can be quite
irritating and can create problem for users. For example, it uses lot of memory, so in result it can
interfere the execution of other programs, which can lead to some unwanted behavior of
computer system such as it crash the system or even the loss of data.
Some of the commonly known viruses are like, File infector virus, Boot Sector virus, Master
boot record virus, Macro virus & Multipartite virus.
Now, let’s see what is Computer Worm?
In contrast worms are those programs which are normally replicating themselves from one
computer system to another without any use of host files. The main difference is that Computer
virus needs infected host file whereas there's no need for Computer Worm. Generally, Worms
exist in other files, mostly it can be found in Word or Excel documents. There main reason
behind why Computer Virus differ from Computer Worm is the way they use the infected host
file. When it comes to Computer Worm, mostly they will release a document which already have
a "worm" or say macro inside that document itself. Once, that document is released, it will go
from one computer to another.
3) Explain what is a race condition is with regards to an operating system?
solution: A race condition is an undesirable situation that occurs when a systemattempts to
perform two or more operations at the same time, but because of the nature of the system, the
operations must be done in the proper sequence to be done correctly.
In some OS some processes share data for reading and writing, then the result of operation
depend on the order in which reading and writing takes place. This condition is called race
condition. The shared data may be on main memory or it may be a shared file, the location of
shared memory doesn't change the nature of communication or the problem that arises.
4) Explain the main difference between Programmed I/O and Interrupt Driven I/O?
solution:
Programmed-driven I/O means the program is polling or checking some hardware item e.g.
mouse within a loop.
For Interrupt driven I/O, the same mouse will trigger a signal to the program to process the
mouse event.
Advantage of Programmed Driven: easy to program and understand
Disadvantages: slow and inefficient
Advantage of Interrupt Driven: fast and efficient
Disadvantage: Can be tricky to write if you are using a low level language.
Can be tough to get the various pieces to work well together. Usually done by the hardware
manufacturer or the OS maker e.g. Microsoft.
points to note are as follows:
Programmed-driven I/O means the program is polling or checking some hardware item e.g.
mouse within a loop.
For Interrupt driven I/O, the same mouse will trigger a signal to the program to process the
mouse event.
Advantage of Programmed Driven: easy to program and understand
Disadvantages: slow and inefficient
Advantage of Interrupt Driven: fast and efficient
Disadvantage: Can be tricky to write if you are using a low level language.
Can be tough to get the various pieces to work well together. Usually done by the hardware
manufacturer or the OS maker e.g. Microsoft.
Solution
1. In OS, multiple jobs can run in parallel and finish faster than if they had run sequentially.
Suppose that two jobs, each of which needs 10 minutes of CPU time, start simultaneously. How
long will the last one take to complete if they run sequentially? How long if they run in parallel?
Assume 80% I/O wait.
solution:
80% I/O wait time means that a process is not in execution(i.e. CPU is sitting idle) for 80% of
the total time a process requires from CPU to complete itself(its execution). 80% I/O time means
it needs 80% of total execution time(10 minutes) to complete its I/O.
80%=80/100 = .8
Sequential execution
thus the time needed to complete a process which requires 10 minute of CPU will be = CPU time
required by process/CPU utilization=
10/CPU utilization= 10/0.2 = 50 minutes.
when two processes run sequentially(one after the other) then the total time required will be =
10/0.02 + 10/0.2 = 50+50=100 minutes
In case of parallel execution we again find the CPU utilization.. since two processes are in
parallel thus the formulae becomes-->
{1-(I/O time)^no. of processes in parallel execution} =1-(0.8)^2= 1-.64=0.36 now the CPU
utilization for 1 process will be 0.36/2=0.18 Therefore the time required will be = CPU time
required by process/CPU utilization= 10/0.18=55.5556(approx.) minutes.
Since the two processes are running in parallel thus the time required by 1 process will be the
total time required by 2 process=55.5556 minutes.
2. Explain the difference between a virus and a worm? How do they each reproduce?
solution:
The main difference between virus and worm is that, computer virus only spreads when a user
opens some affected file whereas computer worm spreads even without the knowledge of the
user. In addition to that, a computer virus can corrupt files, folders, etc. whereas worm does not
harm any file instead it creates additional space, files, shortcuts.
Firstly, let’s see what is Computer Virus?
A piece of code or a small program which is written to make change to the functions of
computer, without the knowledge of user is known as a computer virus. Basically, computer
virus carries two of the criteria, they are-
Viruses are designed by hackers, so they are different from one or the other. Some of the virus
are programmed in a way to damage your computer by infecting its program or deleting the files
or even reformatting the hard disk. Some others are only to play mischief, so you can know
something has gone wrong with your computer like, damaging or changing your audio, video or
text files by their infected files. Though some of the problems are small but still it can be quite
irritating and can create problem for users. For example, it uses lot of memory, so in result it can
interfere the execution of other programs, which can lead to some unwanted behavior of
computer system such as it crash the system or even the loss of data.
Some of the commonly known viruses are like, File infector virus, Boot Sector virus, Master
boot record virus, Macro virus & Multipartite virus.
Now, let’s see what is Computer Worm?
In contrast worms are those programs which are normally replicating themselves from one
computer system to another without any use of host files. The main difference is that Computer
virus needs infected host file whereas there's no need for Computer Worm. Generally, Worms
exist in other files, mostly it can be found in Word or Excel documents. There main reason
behind why Computer Virus differ from Computer Worm is the way they use the infected host
file. When it comes to Computer Worm, mostly they will release a document which already have
a "worm" or say macro inside that document itself. Once, that document is released, it will go
from one computer to another.
3) Explain what is a race condition is with regards to an operating system?
solution: A race condition is an undesirable situation that occurs when a systemattempts to
perform two or more operations at the same time, but because of the nature of the system, the
operations must be done in the proper sequence to be done correctly.
In some OS some processes share data for reading and writing, then the result of operation
depend on the order in which reading and writing takes place. This condition is called race
condition. The shared data may be on main memory or it may be a shared file, the location of
shared memory doesn't change the nature of communication or the problem that arises.
4) Explain the main difference between Programmed I/O and Interrupt Driven I/O?
solution:
Programmed-driven I/O means the program is polling or checking some hardware item e.g.
mouse within a loop.
For Interrupt driven I/O, the same mouse will trigger a signal to the program to process the
mouse event.
Advantage of Programmed Driven: easy to program and understand
Disadvantages: slow and inefficient
Advantage of Interrupt Driven: fast and efficient
Disadvantage: Can be tricky to write if you are using a low level language.
Can be tough to get the various pieces to work well together. Usually done by the hardware
manufacturer or the OS maker e.g. Microsoft.
points to note are as follows:
Programmed-driven I/O means the program is polling or checking some hardware item e.g.
mouse within a loop.
For Interrupt driven I/O, the same mouse will trigger a signal to the program to process the
mouse event.
Advantage of Programmed Driven: easy to program and understand
Disadvantages: slow and inefficient
Advantage of Interrupt Driven: fast and efficient
Disadvantage: Can be tricky to write if you are using a low level language.
Can be tough to get the various pieces to work well together. Usually done by the hardware
manufacturer or the OS maker e.g. Microsoft.

More Related Content

Similar to 1. In OS, multiple jobs can run in parallel and finish faster than i.pdf

Similar to 1. In OS, multiple jobs can run in parallel and finish faster than i.pdf (20)

GUIDE HARDWARE AND SOFTWARE MAINTENANCE English
GUIDE HARDWARE AND SOFTWARE MAINTENANCE EnglishGUIDE HARDWARE AND SOFTWARE MAINTENANCE English
GUIDE HARDWARE AND SOFTWARE MAINTENANCE English
 
Manual en ingles
Manual en  inglesManual en  ingles
Manual en ingles
 
Manual en ingles
Manual en  inglesManual en  ingles
Manual en ingles
 
Manual en ingles
Manual en  inglesManual en  ingles
Manual en ingles
 
Virus project
Virus projectVirus project
Virus project
 
Introductions To Malwares
Introductions To MalwaresIntroductions To Malwares
Introductions To Malwares
 
Virus, Worms And Antivirus
Virus, Worms And AntivirusVirus, Worms And Antivirus
Virus, Worms And Antivirus
 
Virus and antivirus
Virus and antivirus Virus and antivirus
Virus and antivirus
 
Introduction to system programming
Introduction to system programmingIntroduction to system programming
Introduction to system programming
 
Computer Virus
Computer VirusComputer Virus
Computer Virus
 
COMPUTERS ( types of viruses)
COMPUTERS ( types of viruses)COMPUTERS ( types of viruses)
COMPUTERS ( types of viruses)
 
Operating system 2
Operating system 2Operating system 2
Operating system 2
 
System Softwares
System SoftwaresSystem Softwares
System Softwares
 
Malware
MalwareMalware
Malware
 
Network and Internet Security.docx
Network and Internet Security.docxNetwork and Internet Security.docx
Network and Internet Security.docx
 
Lecture10.pptx
Lecture10.pptxLecture10.pptx
Lecture10.pptx
 
Chp 03 - Software PTI - (Shared).pdf
Chp 03 - Software PTI - (Shared).pdfChp 03 - Software PTI - (Shared).pdf
Chp 03 - Software PTI - (Shared).pdf
 
Chp 03 pti - (shared) up
Chp 03   pti - (shared) upChp 03   pti - (shared) up
Chp 03 pti - (shared) up
 
Computervirus
Computervirus Computervirus
Computervirus
 
A short course on computer viruses
A short course on computer virusesA short course on computer viruses
A short course on computer viruses
 

More from gulshan16175gs

(deftemp Animal   (slot loc      (default greencouch))   (slot.pdf
(deftemp Animal   (slot loc      (default greencouch))   (slot.pdf(deftemp Animal   (slot loc      (default greencouch))   (slot.pdf
(deftemp Animal   (slot loc      (default greencouch))   (slot.pdfgulshan16175gs
 
2. The pressures of O2 and NO will be negligibleSolution 2. T.pdf
 2. The pressures of O2 and NO will be negligibleSolution 2. T.pdf 2. The pressures of O2 and NO will be negligibleSolution 2. T.pdf
2. The pressures of O2 and NO will be negligibleSolution 2. T.pdfgulshan16175gs
 
# Imports# Include your imports here, if any are used. import.pdf
 # Imports# Include your imports here, if any are used. import.pdf # Imports# Include your imports here, if any are used. import.pdf
# Imports# Include your imports here, if any are used. import.pdfgulshan16175gs
 
The OMe is a strong electron withdrawing group an.pdf
                     The OMe is a strong electron withdrawing group an.pdf                     The OMe is a strong electron withdrawing group an.pdf
The OMe is a strong electron withdrawing group an.pdfgulshan16175gs
 
O bears three lone pairs and is bound to a H, thu.pdf
                     O bears three lone pairs and is bound to a H, thu.pdf                     O bears three lone pairs and is bound to a H, thu.pdf
O bears three lone pairs and is bound to a H, thu.pdfgulshan16175gs
 
Nacl and H20 so, Salt & water .pdf
                     Nacl and H20 so, Salt & water                    .pdf                     Nacl and H20 so, Salt & water                    .pdf
Nacl and H20 so, Salt & water .pdfgulshan16175gs
 
In terms of ion charge, we notice that the charge.pdf
                     In terms of ion charge, we notice that the charge.pdf                     In terms of ion charge, we notice that the charge.pdf
In terms of ion charge, we notice that the charge.pdfgulshan16175gs
 
Here are four characteristics of acid a) A char.pdf
                     Here are four characteristics of acid  a) A char.pdf                     Here are four characteristics of acid  a) A char.pdf
Here are four characteristics of acid a) A char.pdfgulshan16175gs
 
Fe^3+(aq)Lewis acid H2O(l)Lewis baseereyedcommu .pdf
                     Fe^3+(aq)Lewis acid H2O(l)Lewis baseereyedcommu  .pdf                     Fe^3+(aq)Lewis acid H2O(l)Lewis baseereyedcommu  .pdf
Fe^3+(aq)Lewis acid H2O(l)Lewis baseereyedcommu .pdfgulshan16175gs
 
wrongSolutionwrong.pdf
wrongSolutionwrong.pdfwrongSolutionwrong.pdf
wrongSolutionwrong.pdfgulshan16175gs
 
You can use the below function for linear interpolation i.e.#inclu.pdf
You can use the below function for linear interpolation i.e.#inclu.pdfYou can use the below function for linear interpolation i.e.#inclu.pdf
You can use the below function for linear interpolation i.e.#inclu.pdfgulshan16175gs
 
These are the following tool to build a data model for an applicatio.pdf
These are the following tool to build a data model for an applicatio.pdfThese are the following tool to build a data model for an applicatio.pdf
These are the following tool to build a data model for an applicatio.pdfgulshan16175gs
 
Copper (II) Sulfate = CuSO4 Tin (IV) Oxide = SnO2.pdf
                     Copper (II) Sulfate = CuSO4 Tin (IV) Oxide = SnO2.pdf                     Copper (II) Sulfate = CuSO4 Tin (IV) Oxide = SnO2.pdf
Copper (II) Sulfate = CuSO4 Tin (IV) Oxide = SnO2.pdfgulshan16175gs
 
Water is a good solvent due to its polarity. The oxygen atom in wate.pdf
Water is a good solvent due to its polarity. The oxygen atom in wate.pdfWater is a good solvent due to its polarity. The oxygen atom in wate.pdf
Water is a good solvent due to its polarity. The oxygen atom in wate.pdfgulshan16175gs
 
V. The two types of larvae found in the life cycle of Diphyllobothri.pdf
V. The two types of larvae found in the life cycle of Diphyllobothri.pdfV. The two types of larvae found in the life cycle of Diphyllobothri.pdf
V. The two types of larvae found in the life cycle of Diphyllobothri.pdfgulshan16175gs
 
The tolerance has been given as +-0.05 inchSolutionThe tolera.pdf
The tolerance has been given as +-0.05 inchSolutionThe tolera.pdfThe tolerance has been given as +-0.05 inchSolutionThe tolera.pdf
The tolerance has been given as +-0.05 inchSolutionThe tolera.pdfgulshan16175gs
 
The voltmeter reading indicates that Zn is the negative electrode an.pdf
The voltmeter reading indicates that Zn is the negative electrode an.pdfThe voltmeter reading indicates that Zn is the negative electrode an.pdf
The voltmeter reading indicates that Zn is the negative electrode an.pdfgulshan16175gs
 
The foreign exchange market facilitates the exchange of Currencies. .pdf
The foreign exchange market facilitates the exchange of Currencies. .pdfThe foreign exchange market facilitates the exchange of Currencies. .pdf
The foreign exchange market facilitates the exchange of Currencies. .pdfgulshan16175gs
 
c. defendant that the complaint lacks true facts .pdf
                     c. defendant that the complaint lacks true facts .pdf                     c. defendant that the complaint lacks true facts .pdf
c. defendant that the complaint lacks true facts .pdfgulshan16175gs
 
bonde order of NO in nitrate 1.33 in nitrite is 1.pdf
                     bonde order of NO in nitrate 1.33 in nitrite is 1.pdf                     bonde order of NO in nitrate 1.33 in nitrite is 1.pdf
bonde order of NO in nitrate 1.33 in nitrite is 1.pdfgulshan16175gs
 

More from gulshan16175gs (20)

(deftemp Animal   (slot loc      (default greencouch))   (slot.pdf
(deftemp Animal   (slot loc      (default greencouch))   (slot.pdf(deftemp Animal   (slot loc      (default greencouch))   (slot.pdf
(deftemp Animal   (slot loc      (default greencouch))   (slot.pdf
 
2. The pressures of O2 and NO will be negligibleSolution 2. T.pdf
 2. The pressures of O2 and NO will be negligibleSolution 2. T.pdf 2. The pressures of O2 and NO will be negligibleSolution 2. T.pdf
2. The pressures of O2 and NO will be negligibleSolution 2. T.pdf
 
# Imports# Include your imports here, if any are used. import.pdf
 # Imports# Include your imports here, if any are used. import.pdf # Imports# Include your imports here, if any are used. import.pdf
# Imports# Include your imports here, if any are used. import.pdf
 
The OMe is a strong electron withdrawing group an.pdf
                     The OMe is a strong electron withdrawing group an.pdf                     The OMe is a strong electron withdrawing group an.pdf
The OMe is a strong electron withdrawing group an.pdf
 
O bears three lone pairs and is bound to a H, thu.pdf
                     O bears three lone pairs and is bound to a H, thu.pdf                     O bears three lone pairs and is bound to a H, thu.pdf
O bears three lone pairs and is bound to a H, thu.pdf
 
Nacl and H20 so, Salt & water .pdf
                     Nacl and H20 so, Salt & water                    .pdf                     Nacl and H20 so, Salt & water                    .pdf
Nacl and H20 so, Salt & water .pdf
 
In terms of ion charge, we notice that the charge.pdf
                     In terms of ion charge, we notice that the charge.pdf                     In terms of ion charge, we notice that the charge.pdf
In terms of ion charge, we notice that the charge.pdf
 
Here are four characteristics of acid a) A char.pdf
                     Here are four characteristics of acid  a) A char.pdf                     Here are four characteristics of acid  a) A char.pdf
Here are four characteristics of acid a) A char.pdf
 
Fe^3+(aq)Lewis acid H2O(l)Lewis baseereyedcommu .pdf
                     Fe^3+(aq)Lewis acid H2O(l)Lewis baseereyedcommu  .pdf                     Fe^3+(aq)Lewis acid H2O(l)Lewis baseereyedcommu  .pdf
Fe^3+(aq)Lewis acid H2O(l)Lewis baseereyedcommu .pdf
 
wrongSolutionwrong.pdf
wrongSolutionwrong.pdfwrongSolutionwrong.pdf
wrongSolutionwrong.pdf
 
You can use the below function for linear interpolation i.e.#inclu.pdf
You can use the below function for linear interpolation i.e.#inclu.pdfYou can use the below function for linear interpolation i.e.#inclu.pdf
You can use the below function for linear interpolation i.e.#inclu.pdf
 
These are the following tool to build a data model for an applicatio.pdf
These are the following tool to build a data model for an applicatio.pdfThese are the following tool to build a data model for an applicatio.pdf
These are the following tool to build a data model for an applicatio.pdf
 
Copper (II) Sulfate = CuSO4 Tin (IV) Oxide = SnO2.pdf
                     Copper (II) Sulfate = CuSO4 Tin (IV) Oxide = SnO2.pdf                     Copper (II) Sulfate = CuSO4 Tin (IV) Oxide = SnO2.pdf
Copper (II) Sulfate = CuSO4 Tin (IV) Oxide = SnO2.pdf
 
Water is a good solvent due to its polarity. The oxygen atom in wate.pdf
Water is a good solvent due to its polarity. The oxygen atom in wate.pdfWater is a good solvent due to its polarity. The oxygen atom in wate.pdf
Water is a good solvent due to its polarity. The oxygen atom in wate.pdf
 
V. The two types of larvae found in the life cycle of Diphyllobothri.pdf
V. The two types of larvae found in the life cycle of Diphyllobothri.pdfV. The two types of larvae found in the life cycle of Diphyllobothri.pdf
V. The two types of larvae found in the life cycle of Diphyllobothri.pdf
 
The tolerance has been given as +-0.05 inchSolutionThe tolera.pdf
The tolerance has been given as +-0.05 inchSolutionThe tolera.pdfThe tolerance has been given as +-0.05 inchSolutionThe tolera.pdf
The tolerance has been given as +-0.05 inchSolutionThe tolera.pdf
 
The voltmeter reading indicates that Zn is the negative electrode an.pdf
The voltmeter reading indicates that Zn is the negative electrode an.pdfThe voltmeter reading indicates that Zn is the negative electrode an.pdf
The voltmeter reading indicates that Zn is the negative electrode an.pdf
 
The foreign exchange market facilitates the exchange of Currencies. .pdf
The foreign exchange market facilitates the exchange of Currencies. .pdfThe foreign exchange market facilitates the exchange of Currencies. .pdf
The foreign exchange market facilitates the exchange of Currencies. .pdf
 
c. defendant that the complaint lacks true facts .pdf
                     c. defendant that the complaint lacks true facts .pdf                     c. defendant that the complaint lacks true facts .pdf
c. defendant that the complaint lacks true facts .pdf
 
bonde order of NO in nitrate 1.33 in nitrite is 1.pdf
                     bonde order of NO in nitrate 1.33 in nitrite is 1.pdf                     bonde order of NO in nitrate 1.33 in nitrite is 1.pdf
bonde order of NO in nitrate 1.33 in nitrite is 1.pdf
 

Recently uploaded

Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 

Recently uploaded (20)

Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 

1. In OS, multiple jobs can run in parallel and finish faster than i.pdf

  • 1. 1. In OS, multiple jobs can run in parallel and finish faster than if they had run sequentially. Suppose that two jobs, each of which needs 10 minutes of CPU time, start simultaneously. How long will the last one take to complete if they run sequentially? How long if they run in parallel? Assume 80% I/O wait. solution: 80% I/O wait time means that a process is not in execution(i.e. CPU is sitting idle) for 80% of the total time a process requires from CPU to complete itself(its execution). 80% I/O time means it needs 80% of total execution time(10 minutes) to complete its I/O. 80%=80/100 = .8 Sequential execution thus the time needed to complete a process which requires 10 minute of CPU will be = CPU time required by process/CPU utilization= 10/CPU utilization= 10/0.2 = 50 minutes. when two processes run sequentially(one after the other) then the total time required will be = 10/0.02 + 10/0.2 = 50+50=100 minutes In case of parallel execution we again find the CPU utilization.. since two processes are in parallel thus the formulae becomes--> {1-(I/O time)^no. of processes in parallel execution} =1-(0.8)^2= 1-.64=0.36 now the CPU utilization for 1 process will be 0.36/2=0.18 Therefore the time required will be = CPU time required by process/CPU utilization= 10/0.18=55.5556(approx.) minutes. Since the two processes are running in parallel thus the time required by 1 process will be the total time required by 2 process=55.5556 minutes. 2. Explain the difference between a virus and a worm? How do they each reproduce? solution: The main difference between virus and worm is that, computer virus only spreads when a user opens some affected file whereas computer worm spreads even without the knowledge of the user. In addition to that, a computer virus can corrupt files, folders, etc. whereas worm does not harm any file instead it creates additional space, files, shortcuts. Firstly, let’s see what is Computer Virus? A piece of code or a small program which is written to make change to the functions of computer, without the knowledge of user is known as a computer virus. Basically, computer virus carries two of the criteria, they are- Viruses are designed by hackers, so they are different from one or the other. Some of the virus are programmed in a way to damage your computer by infecting its program or deleting the files or even reformatting the hard disk. Some others are only to play mischief, so you can know
  • 2. something has gone wrong with your computer like, damaging or changing your audio, video or text files by their infected files. Though some of the problems are small but still it can be quite irritating and can create problem for users. For example, it uses lot of memory, so in result it can interfere the execution of other programs, which can lead to some unwanted behavior of computer system such as it crash the system or even the loss of data. Some of the commonly known viruses are like, File infector virus, Boot Sector virus, Master boot record virus, Macro virus & Multipartite virus. Now, let’s see what is Computer Worm? In contrast worms are those programs which are normally replicating themselves from one computer system to another without any use of host files. The main difference is that Computer virus needs infected host file whereas there's no need for Computer Worm. Generally, Worms exist in other files, mostly it can be found in Word or Excel documents. There main reason behind why Computer Virus differ from Computer Worm is the way they use the infected host file. When it comes to Computer Worm, mostly they will release a document which already have a "worm" or say macro inside that document itself. Once, that document is released, it will go from one computer to another. 3) Explain what is a race condition is with regards to an operating system? solution: A race condition is an undesirable situation that occurs when a systemattempts to perform two or more operations at the same time, but because of the nature of the system, the operations must be done in the proper sequence to be done correctly. In some OS some processes share data for reading and writing, then the result of operation depend on the order in which reading and writing takes place. This condition is called race condition. The shared data may be on main memory or it may be a shared file, the location of shared memory doesn't change the nature of communication or the problem that arises. 4) Explain the main difference between Programmed I/O and Interrupt Driven I/O? solution: Programmed-driven I/O means the program is polling or checking some hardware item e.g. mouse within a loop. For Interrupt driven I/O, the same mouse will trigger a signal to the program to process the mouse event. Advantage of Programmed Driven: easy to program and understand Disadvantages: slow and inefficient Advantage of Interrupt Driven: fast and efficient Disadvantage: Can be tricky to write if you are using a low level language.
  • 3. Can be tough to get the various pieces to work well together. Usually done by the hardware manufacturer or the OS maker e.g. Microsoft. points to note are as follows: Programmed-driven I/O means the program is polling or checking some hardware item e.g. mouse within a loop. For Interrupt driven I/O, the same mouse will trigger a signal to the program to process the mouse event. Advantage of Programmed Driven: easy to program and understand Disadvantages: slow and inefficient Advantage of Interrupt Driven: fast and efficient Disadvantage: Can be tricky to write if you are using a low level language. Can be tough to get the various pieces to work well together. Usually done by the hardware manufacturer or the OS maker e.g. Microsoft. Solution 1. In OS, multiple jobs can run in parallel and finish faster than if they had run sequentially. Suppose that two jobs, each of which needs 10 minutes of CPU time, start simultaneously. How long will the last one take to complete if they run sequentially? How long if they run in parallel? Assume 80% I/O wait. solution: 80% I/O wait time means that a process is not in execution(i.e. CPU is sitting idle) for 80% of the total time a process requires from CPU to complete itself(its execution). 80% I/O time means it needs 80% of total execution time(10 minutes) to complete its I/O. 80%=80/100 = .8 Sequential execution thus the time needed to complete a process which requires 10 minute of CPU will be = CPU time required by process/CPU utilization= 10/CPU utilization= 10/0.2 = 50 minutes. when two processes run sequentially(one after the other) then the total time required will be = 10/0.02 + 10/0.2 = 50+50=100 minutes In case of parallel execution we again find the CPU utilization.. since two processes are in
  • 4. parallel thus the formulae becomes--> {1-(I/O time)^no. of processes in parallel execution} =1-(0.8)^2= 1-.64=0.36 now the CPU utilization for 1 process will be 0.36/2=0.18 Therefore the time required will be = CPU time required by process/CPU utilization= 10/0.18=55.5556(approx.) minutes. Since the two processes are running in parallel thus the time required by 1 process will be the total time required by 2 process=55.5556 minutes. 2. Explain the difference between a virus and a worm? How do they each reproduce? solution: The main difference between virus and worm is that, computer virus only spreads when a user opens some affected file whereas computer worm spreads even without the knowledge of the user. In addition to that, a computer virus can corrupt files, folders, etc. whereas worm does not harm any file instead it creates additional space, files, shortcuts. Firstly, let’s see what is Computer Virus? A piece of code or a small program which is written to make change to the functions of computer, without the knowledge of user is known as a computer virus. Basically, computer virus carries two of the criteria, they are- Viruses are designed by hackers, so they are different from one or the other. Some of the virus are programmed in a way to damage your computer by infecting its program or deleting the files or even reformatting the hard disk. Some others are only to play mischief, so you can know something has gone wrong with your computer like, damaging or changing your audio, video or text files by their infected files. Though some of the problems are small but still it can be quite irritating and can create problem for users. For example, it uses lot of memory, so in result it can interfere the execution of other programs, which can lead to some unwanted behavior of computer system such as it crash the system or even the loss of data. Some of the commonly known viruses are like, File infector virus, Boot Sector virus, Master boot record virus, Macro virus & Multipartite virus. Now, let’s see what is Computer Worm? In contrast worms are those programs which are normally replicating themselves from one computer system to another without any use of host files. The main difference is that Computer virus needs infected host file whereas there's no need for Computer Worm. Generally, Worms exist in other files, mostly it can be found in Word or Excel documents. There main reason behind why Computer Virus differ from Computer Worm is the way they use the infected host file. When it comes to Computer Worm, mostly they will release a document which already have a "worm" or say macro inside that document itself. Once, that document is released, it will go from one computer to another. 3) Explain what is a race condition is with regards to an operating system?
  • 5. solution: A race condition is an undesirable situation that occurs when a systemattempts to perform two or more operations at the same time, but because of the nature of the system, the operations must be done in the proper sequence to be done correctly. In some OS some processes share data for reading and writing, then the result of operation depend on the order in which reading and writing takes place. This condition is called race condition. The shared data may be on main memory or it may be a shared file, the location of shared memory doesn't change the nature of communication or the problem that arises. 4) Explain the main difference between Programmed I/O and Interrupt Driven I/O? solution: Programmed-driven I/O means the program is polling or checking some hardware item e.g. mouse within a loop. For Interrupt driven I/O, the same mouse will trigger a signal to the program to process the mouse event. Advantage of Programmed Driven: easy to program and understand Disadvantages: slow and inefficient Advantage of Interrupt Driven: fast and efficient Disadvantage: Can be tricky to write if you are using a low level language. Can be tough to get the various pieces to work well together. Usually done by the hardware manufacturer or the OS maker e.g. Microsoft. points to note are as follows: Programmed-driven I/O means the program is polling or checking some hardware item e.g. mouse within a loop. For Interrupt driven I/O, the same mouse will trigger a signal to the program to process the mouse event. Advantage of Programmed Driven: easy to program and understand Disadvantages: slow and inefficient Advantage of Interrupt Driven: fast and efficient Disadvantage: Can be tricky to write if you are using a low level language. Can be tough to get the various pieces to work well together. Usually done by the hardware manufacturer or the OS maker e.g. Microsoft.