2 cissp ® Official Study Guide Eighth Edition



Download 19,3 Mb.
Pdf ko'rish
bet306/881
Sana08.04.2023
Hajmi19,3 Mb.
#925879
1   ...   302   303   304   305   306   307   308   309   ...   881
Bog'liq
(CISSP) Mike Chapple, James Michael Stewart, Darril Gibson - CISSP Official Study Guide-Sybex (2018)

Multiprogramming Multiprogramming
is similar to multitasking. It involves the pseu-
dosimultaneous execution of two tasks on a single processor coordinated by the operating 
system as a way to increase operational efficiency. For the most part, multiprogramming 
is a way to batch or serialize multiple processes so that when one process stops to wait 
on a peripheral, its state is saved and the next process in line begins to process. The first 
program does not return to processing until all other processes in the batch have had their 
chance to execute and they in turn stop for a peripheral. For any single program, this meth-
odology causes significant delays in completing a task. However, across all processes in the 
batch, the total time to complete all tasks is reduced.
Multiprogramming is considered a relatively obsolete technology and is rarely found in use 
today except in legacy systems. There are two main differences between multiprogramming 
and multitasking:

Multiprogramming usually takes place on large-scale systems, such as mainframes, 
whereas multitasking takes place on personal computer (PC) operating systems, such as 
Windows and Linux.

Multitasking is normally coordinated by the operating system, whereas multiprogram-
ming requires specially written software that coordinates its own activities and execu-
tion through the operating system.
Multithreading Multithreading
permits multiple concurrent tasks to be performed within 
a single process. Unlike multitasking, where multiple tasks occupy multiple processes, 
multithreading permits multiple tasks to operate within a single process. A thread is a self-
contained sequence of instructions that can execute in parallel with other threads that are 
part of the same parent process. Multithreading is often used in applications where frequent 
context switching between multiple active processes consumes excessive overhead and 
reduces efficiency. In multithreading, switching between threads incurs far less overhead and 
is therefore more efficient. Many Intel CPUs since the 2002 release of Xeon included the pro-
prietary multithreading technology known as hyperthreading, which is the ability to virtual-
ize two processors per physical core in order to allow for the concurrent scheduling of tasks. 
In modern Windows implementations, for example, the overhead involved in switching from 
one thread to another within a single process is on the order of 40 to 50 instructions, with 
no substantial memory transfers needed. By contrast, switching from one process to another 
involves 1,000 instructions or more and requires substantial memory transfers as well.


324
Chapter 9 

Security Vulnerabilities, Threats, and Countermeasures
A good example of multithreading occurs when multiple documents are opened at the 
same time in a word processing program. In that situation, you do not actually run multiple 
instances of the word processor—this would place far too great a demand on the system. 
Instead, each document is treated as a single thread within a single word processor process
and the software chooses which thread it works on at any given moment.
Symmetric multiprocessing systems use threading at the operating system level. As in the 
word processing example just described, the operating system also contains a number of 
threads that control the tasks assigned to it. In a single-processor system, the operating sys-
tem (OS) sends one thread at a time to the processor for execution. SMP systems send one 
thread to each available processor for simultaneous execution.

Download 19,3 Mb.

Do'stlaringiz bilan baham:
1   ...   302   303   304   305   306   307   308   309   ...   881




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish