Computer Software Computer Software - ชุดคำสั่ง...
-
Upload
virginia-wilkins -
Category
Documents
-
view
51 -
download
4
description
Transcript of Computer Software Computer Software - ชุดคำสั่ง...
Computer SoftwareComputer Software - ชุ�ดคำ��สั่�งหรื อกลุ่��มของโปรืแกรืม
ซึ่�งคำอมพิ�วเตอรื�จำ��เป นต"องใชุ" เพิ อก�รืทำ��หน"�ทำ%ต��งๆ ในรืะบบคำอมพิ�วเตอรื�ฮ�รื�ดแวรื� เพิ อให"สั่�ม�รืถปรืะมวลุ่ผลุ่ต�มทำ%ผ,"ใชุ"ต"องก�รืได"อย่��งม%ปรืะสั่�ทำธิ�ภ�พิ
ปรืะเภทำของ Computer Software แบ�งออกเป น 2 ปรืะเภทำ ด�งน%1คำ อ
1. โปรืแกรืมรืะบบ (System Software or Operations Software)2. โปรืแกรืมปรืะย่�กต�(Application Software)
HARDWARE
SOFTWARE
1950
1990
Year
Cost
Software classification
1. System Softwareเป นกลุ่��มของโปรืแกรืมทำ%ออกแบบเพิ อคำวบคำ�มก�รื
ทำ��ง�นของโปรืแกรืมอ นๆ แลุ่ะจำ�ดก�รืเก%ย่วก�บก�รืใชุ" Hardware ให"ทำ��ง�นอย่��งม%ปรืะสั่�ทำธิ�ภ�พิ2. Application Software
เป นโปรืแกรืมทำ%ออกแบบเพิ อก�รืใชุ"คำว�มสั่�ม�รืถ ของคำอมพิ�วเตอรื� ซึ่�งผ,"ใชุ"จำะต"องเข%ย่นโปรืแกรืมด"วย่ภ�ษ�
คำอมพิ�วเตอรื�ภ�ษ�ใดภ�ษ�หน�ง เพิ อให"คำอมพิ�วเตอรื�สั่�ม�รืถทำ��ก�รืปรืะมวลุ่ผลุ่ให"ได"ผลุ่ลุ่�พิธิ�ต�มทำ%ต"องก�รื
Application Software (Computer Languages)
แบ�งออกเป น 3 ปรืะเภทำ คำ อ1. Machine language ภ�ษ�เคำรื องปรืะกอบด"วย่
กลุ่��มของเลุ่ขฐ�นสั่องแลุ่ะเป นภ�ษ�เด%ย่วทำ%คำอมพิ�วเตอรื� เข"�ใจำ แต�ลุ่ะคำ��สั่�งปรืะกอบด"วย่ 2 สั่�วน คำ อ
- operation code or “op code”
- operandExample ADD 0184
000100000000000000000000000010111000
2. Low-Level language เป นภ�ษ�ทำ%พิ�ฒน�ม�จำ�ก ภ�ษ�เคำรื อง ม%ภ�ษ�เด%ย่วเทำ��น�1น คำ อ Assembly language
โดย่ก�รืใชุ"สั่�ญลุ่�กษณ์� (Symbols) แทำนเลุ่ขฐ�นสั่องExample S CREDIT, TOTAL 011111 011111111111 000000111111
op code 2047 0063 (S) (CREDIT) (TOTAL)
The composition of an instructionfor the machine
Decoding the instruction 35A7
An encoded version of theInstructions
Decoding the instruction B258
3. High-Level language เป นภ�ษ�ทำ%พิ�ฒน�ข�1น เพิ อให"ผ,"เข%ย่นโปรืแกรืมเข%ย่นโปรืแกรืมได"ง��ย่ข�1น โดย่
ไม�ต"องสั่นใจำก�รืทำ��ง�นของเคำรื องว��จำะน��ข"อม,ลุ่จำ�กaddress ใดๆ ม�ทำ��ก�รืคำ��นวณ์ แลุ่ะคำ��สั่�งต��งๆ ก7เป นคำ��ในภ�ษ�อ�งกฤษทำ%เข"�ใจำได"ง��ย่Example
READ A,BINPUT X,Y
Generations of programminglanguages
The evolution of programmingparadigms
ภ�ษ� - High Level ได"ม%ก�รืสั่รื"�งแลุ่ะพิ�ฒน�ข�1นม� อย่��งม�กม�ย่หลุ่�ย่ภ�ษ� แต�ลุ่ะภ�ษ�จำะม%คำว�มเหม�ะสั่ม
ก�บลุ่�กษณ์ะง�นทำ%แตกต��งก�นในก�รืทำ%จำะเข%ย่นโปรืแกรืม เพิ อแก"ป;ญห� ซึ่�งขอย่กต�วอย่��งภ�ษ�ทำ% อย่,�ในรืะด�บน%1 คำ อ
1. ภ�ษ�ทำ%เหม�ะก�บก�รืแก"ป;ญห�ทำ�งว�ทำย่�ศ�สั่ตรื� แลุ่ะคำณ์�ตศ�สั่ตรื� เชุ�น BASIC -(Beginner’s All purpose
Symbolic Instruction Code), FORTRAN (FORmula TRANslator), WATFIV (Waterloo FORTRAN IV),
PL/I, ALGOL, Pascal, Ada, APL แลุ่ะ C เป นต"น 2 . ภ�ษ�ทำ%เหม�ะก�บง�นด"�นธิ�รืก�จำ เชุ�น COBOL
(COmmon Business Oriented Language), RPG
3. ภ�ษ�ทำ%ใชุ"ก�บง�นก�รืจำ��ลุ่อง แบบ (Simulation) เชุ�น GPSS, SIMSCRIPT4. ภ�ษ�ทำ%สั่รื"�งข�1นม�เพิ อใชุ"เฉพิ�ะ ง�น เชุ�น
- PILOT (Programmed Inquiry Learning Or Teaching)- SNOBOL, LISP ใชุ"ก�บง�นทำ%ไม�ใชุ�ต�วเลุ่ขลุ่"วนๆ- APT (Automatically Programmed Tooling) ใชุ"ก�บง�นคำวบคำ�มเคำรื องม อในโรืงง�น- FORTH ใชุ"ก�บง�นคำ��นวณ์ทำ%ม%โคำรืงสั่รื"�งซึ่�บซึ่"อนแลุ่ะ
ต"องก�รืผลุ่ลุ่�พิธิ�ในรื,ปแบบ Graphic
The same variable declarations indifferent languages
The translation process
The complete program preparationprocess
โปรืแกรืมสั่��เรื7จำรื,ป (Package Program)• Subroutine Package
- SSP (Scientific Subroutine Package)- IMSL FORTRAN Subroutine Package IMSL ม�จำ�ก International Mathematics and
Statistical Libraries- FAMS (Forecasting and Modeling System)
• Statistical Package- SPSS (Statistical Package for Social Science)- BMDP (Biomedical computer Package)
• - Non scientific Package- Word processing - Speadsheet- Database - Integrated Software
ป;จำจำ�บ�นโปรืแกรืมสั่��เรื7จำรื,ปปรืะเภทำDatabase ได"รื�บคำว�มน�ย่มแลุ่ะใชุ"ง�นก�นอย่��งแพิรื� หลุ่�ย่ม�ก เพิรื�ะสั่�ม�รืถจำะจำ�ดก�รืก�บแฟ้?มข"อม,ลุ่ได"อย่��งม%ปรืะสั่�ทำธิ�ภ�พิโดย่ใชุ"คำ��สั่�งเพิ%ย่งไม�ก%คำ��สั่�ง
ปรืะเภทำของรืะบบก�รืจำ�ดก�รืฐ�นข"อม,ลุ่ในป;จำจำ�บ�น ม%อย่,�ด"วย่ก�น 4 Models คำ อ
1. List Model2. Hierarchical Model 3. Network Mode4. Relational Model
ประโยชน์�ของการจั�ดการด�าน์ฐาน์ข�อมู�ล 1 ลุ่ดคำว�มซึ่�1�ซึ่"อนของข"อม,ลุ่ 2. สั่�ม�รืถหลุ่%กเลุ่%ย่งคำว�มข�ดแย่"งของข"อม,ลุ่ 3 . สั่�ม�รืถใชุ"ข"อม,ลุ่รื�วมก�นได" 4 . สั่�ม�รืถคำวบคำ�มคำว�มเป นม�ตรืฐ�นได" 5 . ม%รืะบป?องก�นคำว�มปลุ่อดภ�ย่ของข"อม,ลุ่ทำ%ด% 6 . สั่�ม�รืถคำวบคำ�มคำว�มคำงสั่ภ�พิของข"อม,ลุ่ได" 7 . สั่�ม�รืถสั่รื"งคำว�มสั่มด�ลุ่ในคำว�มข�ดแย่"งของ
คำว�มต"องก�รืของผ,"ใชุ"ได" 8 . เก�ดคำว�มเป นอ�สั่รืะของข"อม,ลุ่
Software ทำ%ใชุ"ก�บง�นด"�นก�รืจำ�ดก�รืฐ�นข"อม,ลุ่- DBMS (Data Base Management System)- dBASE II, dBASE III PLUS, dBASE IV- FoxBase, FoxPro- ACCESS- Oracle- Delphi, VB, SQL- etc.
Operating System(OS)
Operating System : เป น Program modulesทำ%ใชุ"ในก�รืคำวบคำ�มก�รืทำ��ง�นของอ�ปกรืณ์�คำอมพิ�วเตอรื�
ต��ง ๆ เชุ�น Processor, main storage, I/O devices แลุ่ะ files ต��ง ๆ เป นต"น Program modules เหลุ่��น%1จำะชุ�วย่
เพิ�มปรืะสั่�ทำธิ�ภ�พิของรืะบบคำอมพิ�วเตอรื�แลุ่ะชุ�วย่ให"ก�รื ทำ��ง�นง��ย่ข�1นสั่��หรื�บผ,"ใชุ" โดย่ทำ��หน"�ทำ%เป นสั่ อกลุ่�ง
รืะหว��งโปรืแกรืม , ผ,"ใชุ" (users) ก�บ Hardware
Operating System Operating System Abbreviated OS; sometimes
called the executive. The software responsible forcontrolling the allocation and usage of hardware resourcessuch as memory, central processing unit (CPU) time, diskspace, and peripheral devices. The operating system is thefoundation on which applications, such as word-processingand spreadsheet programs, are built. Popular operatingsystem include CP/M, MS-DOS, the Macintosh OS, OS/2,Windows, Windows NT, and UNIX.
UNIX A multiuser, multitasking operating system originally
developed by Ken Thompson and Dennis Ritchie at AT&T Bell Laboratories in 1969 for use on minicomputers.UNIX
exists in various forms and implementations; among these are version developed at the University of California at Berkeley
and versions released by AT&T, the most recent being AT&T System V. UNIX is considered a powerful operating system
that, because it is written in the C language, is more- portable that is, less machine- -- specific than other operating
system. UNIX is available in several related forms, including AIX, a version of UNIX adapted by IBM (to run on- RISC based workstations), A/UX (a graphical version for the
Apple Macintosh), and Mach (a rewritten but essentially- UNIX compatible operating system for the NeXT computer).
Overview of Function of an Operating System:
INTRODUCTION
•Operating System is a very complex program•Its primary task is to
manage system resources•Tasks include:
•Load application for execution•Provide services (I/O
services…)•Time sharing•Handle virtual memory•Maintain file system
Overview of Function of an Operating System: SYSTEM BOOTUP
•When a computer is powered up, the boot loader program, which is stored in the ROM, will be executed •The task of the boot loader
is to load OS from disk into memory and transfer the control to the OS when completed•Question: How can the
boot loader know where on the disk it’s supposed to read?•Answer: On the disk,
there is a special sector, called boot sector, boot record, or boot block. This contains executable code, which instructs computer hardware how to load the OS into the memory
Overview of Function of an Operating System: APPLICATION PROGRAM LOADING
Suppose we want to executing a.out at the Unix prompt. Here is what will happen:
1.Hardware interrupts will occur. The OS steps in to service interrupt2.The loader will look in the
disk directory to see if the file exists. If it does, the loader will read a.out program to determine how much memory a.out needs3.Enough memory will be
allocated for a.out program4.Loader will load a.out
into memory.5.Loader will determine the
entry point of the a.out program
Overview of Function of an Operating System: APPLICATION PROGRAM LOADING (cont.)
6.The OS is now ready to execute a.out. It will execute a jump to the entry point of the a.out program.7.The a.out program is
executed as usual, according to its content8.When a.out finishes
execution, it initiates a call to the OS (exit() function, which was inserted by the compiler). The OS will step in, clean things up and prepare the system for the next waiting process on the running queue (if there any).
Overview of Function of an Operating System: Hardware Interrupt
Here is a brief summary what will happen when an interruptoccurs.
•An electrical signal is being sent to the CPU•CPU will try to complete executing the current instruction•Save the program state such as PC, stack pointer, register values,…•Jump to the location of the interrupt service routine (interrupt handler) and execute the interrupt handler•Interrupt handler will determine the nature of the interrupt and act accordingly.•When the interrupt handler completes its task, it will execute an IRET (interrupt return)•The original program state will be restored and run
The shell as an interface between users and the operating system
The booting process
Bootstrap สั่�วนของคำอมพิ�วเตอรื�โปรืแกรืมทำ%ใชุ"สั่��หรื�บเรื%ย่กโปรืแกรืมอ นเข"�ม�ในหน�วย่คำว�มจำ�� เชุ�น สั่�วนของโปรืแกรืมในหน�วย่คำว�มจำ��รือมทำ%ใชุ"เรื%ย่กโปรืแกรืมคำวบคำ�มก�รืทำ��ง�นของรืะบบ
จำ�กแผ�นจำ�นแม�เหลุ่7ก เป นต"น คำว�มหม�ย่เด%ย่วก�บ loading program
Booting System
Booting Process
• Loading first sector of diskette/disk into memory
• Initializing system
• Checking system
• Testing peripheral
• Loading basic OS into memory
Disk Components
User data area contains the data grouped in files
User data area contains the data grouped in files
File directory contains entries
describing files, volume names, and
sub-directory
File directory contains entries
describing files, volume names, and
sub-directory
Second File Allocation Table copy of the first FAT
Second File Allocation Table copy of the first FAT
First File Allocation Table contains information on space
used in the user data area
First File Allocation Table contains information on space
used in the user data area
Boot area
First sector of Disk
First sector of Disk
Boot Code
BIOS Parameter
Block
Jump Code
Vendor
Identification
หน์�าที่��ของระบบด�าเน์�น์งาน์(Operating System) อ�จำจำ��แนกต�มสั่�วนปรืะกอบต��ง ๆ ของ OS ได"
4 ปรืะเภทำ คำ อ1. ก�รืจำ�ดก�รืเก%ย่วก�บหน�วย่คำว�มจำ�� (Memory Management)2. ก�รืจำ�ดก�รืเก%ย่วก�บต�วปรืะมวลุ่ผลุ่ (Processor Management)3. ก�รืจำ�ดก�รืเก%ย่วก�บอ�ปกรืณ์� ต��ง ๆ
(Devices Management)4. ก�รืจำ�ดก�รืเก%ย่วก�บสั่�รืสั่นเทำศ (Information Management)
ลุ่�กษณ์ะก�รืจำ�ดก�รืเก%ย่วก�บหน�วย่ต��ง ๆ ม%ขบวนก�รือย่,� 4 แบบ ด�งน%1คำ อ
1. ต�ดต�มก�รืถ,กใชุ"ง�นของสั่�วน ต��ง ๆ ของ คำอมพิ�วเตอรื�2. ก��หนดนโย่บ�ย่ก�รืใชุ"สั่�วนต��ง ๆ ของ คำอมพิ�วเตอรื�3. จำ�ดเตรื%ย่มสั่�วนของคำอมพิ�วเตอรื�ให"ก�บง�น ทำ%ม%สั่�ทำธิ�@ใชุ"ง�นสั่�วนน�1น4. เรื%ย่กสั่�วนของคำอมพิ�วเตอรื�คำ นจำ�กง�นทำ%หมด สั่�ทำธิ�@ก�รืใชุ"ง�นแลุ่"ว
องคำ�ปรืะกอบของ OS สั่�ม�รืถแบ�งออกเป น2 ปรืะเภทำ คำ อ1. Control programs2. Processing programs
CONTROL PROGRAMS in an Operating System- Supervisor, Monitor, or Executive program
เป นโปรืแกรืมทำ%สั่��คำ�ญใชุ"ในก�รืคำวบคำ�ม(control) แลุ่ะปรืะสั่�น ง�น (coordinates) ก�บสั่�วนต��งๆของOS ซึ่�งโปรืแกรืมสั่�วนน%1 จำะถ,ก load เก7บไว"ในหน�วย่คำว�มจำ��หลุ่�กตลุ่อดเวลุ่�ก�รืใชุ"ง�น
สั่�วนโปรืแกรืมอ นๆ ของ OS จำะถ,กจำ�ดเก7บไว"ในหน�วย่คำว�มจำ�� สั่��รือง เชุ�น Disk เม อต"องก�รืใชุ"ง�นSupervisor จำะทำ��หน"�ทำ%
เรื%ย่กโปรืแกรืมเข"�สั่,�หน�วย่คำว�มจำ��หลุ่�ก
MEMORYSUPER
VISOR Operating System
- Job Control Programs โปรืแกรืมสั่�วนน%1ทำ��หน"�ทำ% แปลุ่ Job Control Language (JCL) ซึ่�งจำะถ,กเข%ย่นอย่,�หน"�
โปรืแกรืมคำ��สั่�งทำ��ง�นต��งๆ หรื อป?อนเข"�ไปโดย่ตรืงเพิ อให"OS ได"รื, "ว��ผ,"เข%ย่นโปรืแกรืมเข%ย่นด"วย่ภ�ษ�คำอมพิ�วเตอรื�ใด
บอกเก%ย่วก�บชุ อโปรืแกรืม ชุ อผ,"เข%ย่นโปรืแกรืมแลุ่ะอ�ปกรืณ์�รื�บ/สั่�งข"อม,ลุ่(I/O devices)ในก�รื ปรืะมวลุ่ผลุ่ รืวมทำ�1งคำว�มต"องก�รืต�วแปลุ่ภ�ษ�ทำ%จำะใชุ"
- I/O Management System โปรืแกรืมสั่�วนน%1ทำ��หน"�ทำ%คำวบคำ�มแลุ่ะจำ�ดสั่รืรืก�รืทำ��ง�นของอ�ปกรืณ์�รื�บสั่�งข"อม,ลุ่แลุ่ะเสั่"นทำ�งทำ%ข"อม,ลุ่ใชุ"ผ��นเข"� ออก (Channels)
ในรืะบบคำอมพิ�วเตอรื� สั่�วนของChannels จำะเป นHardware ทำ%คำวบคำ�มก�รืสั่�งผ��น ข"อม,ลุ่รืะหว��ง slow I/O devices แลุ่ะ high-speed CPU แลุ่ะย่�งม%สั่�วนเพิ�มเต�มทำ%
เรื%ย่กว�� buffers ม�ชุ�วย่ในก�รืเก7บข"อม,ลุ่ทำ%ผ��นเข"�ออกในรืะบบคำอมพิ�วเตอรื�
Channel ม%อย่,� 3 ปรืะเภทำ คำ อ- multiplexer ใชุ"ก�บ -slow- and medium speed devices- selector ใชุ"ก�บ - high speeddevices- - block multiplexer เป นก�รืรืวมเอ�คำ�ณ์สั่มบ�ต� ของ multiplexer แลุ่ะ selector
Buffer ม%อย่,� 2 ปรืะเภทำ คำ อ- input buffer- output buffer
OS supervisorJob A programJob B program
Channel 1
Channel 3
Channel 2
Channel 4
Card reader
Dish drive
Printer
Display
Channels control the execution of I/O instruction
PROCESSING PROGRAMS in an Operating System
- Translator programs เป นโปรืแกรืมทำ%ทำ��หน"�ทำ%ในก�รืแปลุ่โปรืแกรืมทำ%ถ,กเข%ย่นด"วย่ภ�ษ� คำอมพิ�วเตอรื�ต��งๆ
ให"อย่,�ในภ�ษ�ทำ%เคำรื องคำอมพิ�วเตอรื�เข"�ใจำ คำ อ ภ�ษ�เคำรื อง บ�งคำรื�1งจำะเรื%ย่กว�� Compilers ภ�ษ�คำอมพิ�วเตอรื�แต�ลุ่ะภ�ษ�
จำะม%ต�วแปลุ่ภ�ษ�เฉพิ�ะต�ว เชุ�น Assembler ใชุ"แปลุ่ภ�ษ�
AssemblyInterpreter ใชุ"แปลุ่ภ�ษ� BASICFORTRAN Compiler
C compiler
Source program+ Compiler =object program
Source program+ Compiler =object program
2
1
4
errors onlyInteractiveprogramdevelopment
Sourceprogram andobject files
3
errors only
object files+libraryfiles + Linker =executable program
object files+libraryfiles + Linker =executable program
Linking
Source program,object files andExecutableprogram
5
executable program executable program
Executeprogram
Source program,object files andExecutableprogram
6
Source program +changes = revised source program
Source program +changes = revised source program
Modify sourceprogram
Source program,object files andExecutableprogram
7
- Utility Programs เป นโปรืแกรืมทำ%บรื�ษ�ทำผ,"สั่รื"�งคำอมพิ�วเตอรื�หรื อผ,"เข%ย่นโปรืแกรืมรืะบบเข%ย่นข�1นเพิ อให"ผ,"ใชุ"คำอมพิ�วเตอรื�สั่�ม�รืถเรื%ย่กม�ใชุ"ง�นรื�วมก�บโปรืแกรืม
ของตนเอง หรื อให"บรื�ก�รือ นๆ เก%ย่วก�บก�รืจำ�ดก�รืข"อม,ลุ่- Library Program จำะเป นโปรืแกรืมย่�อย่ทำ%ผ,"ใชุ"
สั่�ม�รืถเรื%ย่กไปใชุ"ง�นรื�วมก�บโปรืแกรืมทำ%เข%ย่นข�1นเอง- Diagnostic Program เป นโปรืแกรืมทำ%ใชุ"ในก�รื
ตรืวจำสั่อบก�รืทำ��ง�นของอ�ปกรืณ์�ต��งๆภ�ย่ในเคำรื องเพิ อตรืวจำห�ว��ม%คำว�มชุ��รื�ดทำ%อ�ปกรืณ์�สั่�วนใดบ"�ง
Source Program
Object Program
COMPUTER
COMPILER
ข�1นตอนก�รืแปลุ่ภ�ษ�
- Text Editor เป นโปรืแกรืมทำ%ใชุ"ในก�รืสั่รื"�งโปรืแกรืม
ประเภที่และความูสามูารถของ OS• Batch Processing หรื อStacked Job Processing• Overlapped Processing• Dynamic Job Processing• Multiprogramming• Multiprocessing• Virtual Storage• etc.
Batch processing
Interactive processing
Time-sharing between process A andprocess B
The client/server model
Introduction to DOS
• The most important components of DOS:
The BIOS module
The DOS kernel
The command processor
• Booting DOS
• COM and EXE programs
Brief History of Windows (1)
• Windows 1.0– Announced in 1983, released in November 1985
• Windows 2.0– Released in 1987– New feature: overlapping Windows!– Required Intel 8086 or 8088 Processor– Could access 1 megabyte of memory
• Windows 3.0– Introduced on May 22, 1990– Big change: Supported 16-bit protected mode (Intel
286/386 processors)– Could access upto 16 megabytes of memory
Brief History of Windows (2)
• Windows 3.1– Released in April 1992– TrueType fonts (scalable)– Multimedia– Ran only in protected mode– Required 286/386 with > 1MB of memory
• Windows NT– Introduced in July 1993– First Windows version supporting 32-bit mode of Intel 386,
486 and Pentium processors– Designed to be portable to non-Intel processors
Brief History of Windows (3)
• Windows 95– Introduced in August 1995– Also supported 32-bit programming mode
• Windows 98– Released in June 1998– Performance improvements & hardware support– Internet Integration
• Windows 2000– Introduced in February 2000
• Windows Millennium– Released in September 2000
Cache memoryA special very-high-speed memory call a cache is
sometimes used to increase the speed of processing by making current programs and data available to the CPU at a rapid rate. The cache memory is employed in computersystems to compensate for the speed differential between main memory access time, with the result that processingspeed is limited primarily by the speed of main memory.A technique used to compensate for the mismatch inoperating speeds is to employ an extremely fast, small cachebetween the CPU and main memory whose access time isclose to processor logic clock cycle time. The cache is used
for storing segments of programs currently being executed in the CPU and temporary data frequently needed in the present
calculations.
Magnetic tapesMagnetic disks
Auxiliary memory
I/O processor
CPU
Main memory Cache memory
Memory hierarchy in a computer system
Multiprogramming Many operating systems are designed to enable the
CPU to process a number of independent programs concurrently. This concept, call multiprogramming, refers to
the existence of two or more programs in different parts of the memory hierarchy at the same time. In this way it is
possible to keep all parts of the computer busy by working with several programs insequence.
MultiprocessorsA multiprocessor system is an interconnection of two
or more CPUs with memory and input-output equipment. The term “processor” in multiprocessor can mean either a central processing unit (CPU) or an input-output processor(IOP)
The benefit derived from a multiprocessor organizationis an improved system performance. The system derives itshigh performance from the fact that computations can proceedin parallel in one of two ways.
1. Multiple independent jobs can be made to operate in parallel.
2. A single job can be partitioned into multiple parallel tasks.
Memory unit
CPU 1
CPU 2
CPU 3
IOP 1
IOP 2
- 1. Time share common (( รืะบบบ�สั่รื�วม)
โครงสร�างของการต่&อไมูโครโปรเซสเซอร�หลายต่�วเป)น์ระบบ
MM 1
MM 2
MM 3
MM 4
CPU 1
CPU 2
CPU 3
CPU 4
2. (Multiport memory รืะบบหน�วย่คำว�มจำ��หลุ่�ย่ชุ�องทำ�ง)