SlideShare una empresa de Scribd logo
1 de 55
Descargar para leer sin conexión
1.
Linux Server
2.
CPU
2.
Multi Tasking
single-tasking
Windows
Multi Tasking
Multi User
multi-user
Multi User
3.
boot CD-ROM CD-ROM iso
Install Ubuntu Server
Time zone
4. Keyboard ?
No ( TAB Enter
5. Keyboard layout
English Thai
6. layout
server
7.
default Alt+Shift
8.
9.
use
r
10. username account
11. password account
12. password
13. password password ?
yes
14. Encrypt) ?
NO (
15. Network time server
Cancel
15.1 cancel
Time zone Asia/Bangkok
Yes
16. Partition Harddisk
Guided - use entire disk and set up LVM
17. Partiton
18. Disk LVM ?
Yes
Volume Group ?
Continue
20. Disk ?
Yes
21. Packages
5. CPU
1
1. Process id)
2. Program code)
3. Data)
4. Process control block)
4.1 Pointer)
4.2 Process state)
4.3 Program id)
4.4 Program counter)
4.5 Register)
4.6 CPU scheduling information)
4.7 Memory management information)
4.8 Account information)
4.9 I/O status information)
pointer process state
process id
process counter
registers
list of open files
:::
:::
5. PSW (Program status word)
6. Properties of process)
6.1 Priority)
6.2 Authority)
6.3
2
6
1. New : The process is being created.)
2. Ready : The process is waiting to be assigned to a processor.)
3. Running : Instructions are being executed.)
4. Wait : The process is waiting for some event to occur.)
5. Block : The process is blocked for some event to occur.)
6. Terminate : The process has finished execution.)
4
1. ready state)
2. running state)
3. blocked state)
4. suspend state)
3
process
process CPU process
1. Device queue I/O child process
job queue queue process
ready, blocked running
process I/O devices device queue device queue
processes queue
scheduler Device queue
scheduler scheduler process
2. Contect switch process
OS
Process Process
saving the stat of the old process and loading
the saved state for the new process context switch
context of process PCB of a process
Mutual exclusion
process
Critical region process Critical region
4
mutual exclusion
1. process critical region
2.
3. process critical region block process
4. process critical region
Mutual exclusion with busy waiting
5. Disable interrupt
6. Lock variable
7. Strict alternation
8. Peterson's solution
9. TSL instruction
4
process
Parent process) Children process)
process tree of
process on a typical UNIX system
1. Process creation)
process process execute
1.
(The parent continues to execute concurrently with its children.)
2.
(The parent waits until some or all of its children have terminated.)
process process address
1. address
(The child process is a duplicate of the parent process.)
2. load address
(The child process has a program loaded into it.)
2. Process termination)
3
1. resource
2.
3. OS
process Linux
[root@yn1 root]# ps -aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1376 84 ? S Oct08 0:12 init
root 1482 0.0 0.0 1440 156 ? S Oct08 0:32 syslogd -m 0
root 1486 0.0 0.0 1368 4 ? S Oct08 0:00 klogd -x
rpc 1504 0.0 0.0 1540 0 ? SW Oct08 0:00 [portmap]
rpcuser 1523 0.0 0.0 1680 0 ? SW Oct08 0:00 [rpc.statd]
named 1620 0.0 1.9 41836 5040 ? S Oct08 6:16 [named]
root 1635 0.0 0.1 3508 300 ? S Oct08 0:05 /usr/sbin/sshd
root 1649 0.0 0.1 2024 368 ? S Oct08 0:02 xinetd -stayalive
root 1659 0.0 0.0 1596 88 ? S Oct08 0:00 /usr/sbin/vsftpd
root 1680 0.0 0.2 5920 548 ? S Oct08 0:52 [sendmail]
smmsp 1689 0.0 0.1 5716 316 ? S Oct08 0:00 [sendmail]
apache 9825 99.9 0.0 0 0 ? RW Oct08 15286:48 [httpd]
root 10719 0.0 0.0 17200 96 ? S Oct18 0:02 /usr/sbin/httpd
apache 15017 0.0 3.0 22708 7860 ? S Oct18 0:07 [httpd]
apache 15018 0.0 2.8 23940 7312 ? S Oct18 0:06 [httpd]
apache 18350 0.0 3.3 27072 8604 ? S 08:23 0:06 [httpd]
root 22018 0.0 0.8 6268 2108 ? S 13:16 0:00 [sendmail]
5. Cooperating process)
2 Independent process)
Cooperating process)
1. Information sharing)
2. Computation speedup)
3. Modularity)
4. Convenience)
6. Interprocess communication : IPC)
6.1 Message-passing system)
IPC 2 Send(message)
Receive(message) -
- Direct or indirect communication (
- Symmetric or asymmetric communication (
- Automatic or explicit buffering (Explicit =
- Send by copy or send by reference
- Fixed-sized or variable-sized messages
6.2 Naming)
6.2.1 Direct communication
A
B
send(B,message) B
6.2.2 Indirect communication
receive(A,message) A
mailbox port
mail box mail box
share mail box
mail box mail box 3
1. Queue mailbox block First In First
Out)
2. Pipe mailbox
3. Stack mailbox First In Last Out)
6.3 Synchronization)
send receive
blocking nonblocking
deadlock 4
- Blocking send : The sending process is blocked until the message is received by the
receiving process or by the mailbox.
- Nonblocking send : The sending process sends the message and resumes operation.
- Blocking receive : The receiver blocks until a message is available.
- Nonblocking receive: The receiver retrieves either a valid message or a null.
6.4 Buffering)
3
- Zero capacity
- Bounded capacity
- Unbounded capacity
7.
1. Single processing) Sequential processing (one result / m
cycles)
2. Multi processing) Pipelining (one result / cycle)
3. Parallel processing) Parallel processing (n results / m
cycles)
6.
process
Parent process) Children process)
process tree of
process on a typical UNIX system
1. Process creation)
process process execute
1.
(The parent continues to execute concurrently with its children.)
2.
(The parent waits until some or all of its children have terminated.)
process process address
1. address
(The child process is a duplicate of the parent process.)
2. load address
(The child process has a program loaded into it.)
2. Process termination)
3
1. resource
2.
3. OS
process Linux
[root@yn1 root]# ps -aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1376 84 ? S Oct08 0:12 init
root 1482 0.0 0.0 1440 156 ? S Oct08 0:32 syslogd -m 0
root 1486 0.0 0.0 1368 4 ? S Oct08 0:00 klogd -x
rpc 1504 0.0 0.0 1540 0 ? SW Oct08 0:00 [portmap]
rpcuser 1523 0.0 0.0 1680 0 ? SW Oct08 0:00 [rpc.statd]
named 1620 0.0 1.9 41836 5040 ? S Oct08 6:16 [named]
root 1635 0.0 0.1 3508 300 ? S Oct08 0:05 /usr/sbin/sshd
root 1649 0.0 0.1 2024 368 ? S Oct08 0:02 xinetd -stayalive
root 1659 0.0 0.0 1596 88 ? S Oct08 0:00 /usr/sbin/vsftpd
root 1680 0.0 0.2 5920 548 ? S Oct08 0:52 [sendmail]
smmsp 1689 0.0 0.1 5716 316 ? S Oct08 0:00 [sendmail]
apache 9825 99.9 0.0 0 0 ? RW Oct08 15286:48 [httpd]
root 10719 0.0 0.0 17200 96 ? S Oct18 0:02 /usr/sbin/httpd
apache 15017 0.0 3.0 22708 7860 ? S Oct18 0:07 [httpd]
apache 15018 0.0 2.8 23940 7312 ? S Oct18 0:06 [httpd]
apache 18350 0.0 3.3 27072 8604 ? S 08:23 0:06 [httpd]
root 22018 0.0 0.8 6268 2108 ? S 13:16 0:00 [sendmail]
7.7
8.
1. operating system) OS)
2. Apache Web server HTTPD Web Server Apache
Homepage Homepage Browser Web server
HomePage web server
mod_perl,mod_python
mod_php HTML
Download website www.apache.org
3. MySQL MySQL AB
SQL
Web
Server) Server-Side Script)
4. joomla CMS
CMS CMS Content
Management System"
Code HTML, PHP, SQL
CMS Code
CMS
1
2
3
4
5
6
Powered by TCPDF (www.tcpdf.org)

Más contenido relacionado

La actualidad más candente

AOS Lab 2: Hello, xv6!
AOS Lab 2: Hello, xv6!AOS Lab 2: Hello, xv6!
AOS Lab 2: Hello, xv6!Zubair Nabi
 
Kernel Recipes 2019 - Faster IO through io_uring
Kernel Recipes 2019 - Faster IO through io_uringKernel Recipes 2019 - Faster IO through io_uring
Kernel Recipes 2019 - Faster IO through io_uringAnne Nicolas
 
Proactive monitoring with Monit
Proactive monitoring with MonitProactive monitoring with Monit
Proactive monitoring with MonitOSOCO
 
AOS Lab 1: Hello, Linux!
AOS Lab 1: Hello, Linux!AOS Lab 1: Hello, Linux!
AOS Lab 1: Hello, Linux!Zubair Nabi
 
Sistemas operacionais 8
Sistemas operacionais 8Sistemas operacionais 8
Sistemas operacionais 8Nauber Gois
 
Building Network Functions with eBPF & BCC
Building Network Functions with eBPF & BCCBuilding Network Functions with eBPF & BCC
Building Network Functions with eBPF & BCCKernel TLV
 
Introduction to eBPF and XDP
Introduction to eBPF and XDPIntroduction to eBPF and XDP
Introduction to eBPF and XDPlcplcp1
 
Configuring Syslog by Octavio
Configuring Syslog by OctavioConfiguring Syslog by Octavio
Configuring Syslog by OctavioRowell Dionicio
 
Reverse engineering Swisscom's Centro Grande Modem
Reverse engineering Swisscom's Centro Grande ModemReverse engineering Swisscom's Centro Grande Modem
Reverse engineering Swisscom's Centro Grande ModemCyber Security Alliance
 
Kqueue : Generic Event notification
Kqueue : Generic Event notificationKqueue : Generic Event notification
Kqueue : Generic Event notificationMahendra M
 
Linux Network commands
Linux Network commandsLinux Network commands
Linux Network commandsHanan Nmr
 
Как HeadHunter удалось безопасно нарушить RFC 793 (TCP) и обойти сетевые лову...
Как HeadHunter удалось безопасно нарушить RFC 793 (TCP) и обойти сетевые лову...Как HeadHunter удалось безопасно нарушить RFC 793 (TCP) и обойти сетевые лову...
Как HeadHunter удалось безопасно нарушить RFC 793 (TCP) и обойти сетевые лову...Андрей Шорин
 
Как HeadHunter удалось безопасно нарушить RFC 793 (TCP) и обойти сетевые лову...
Как HeadHunter удалось безопасно нарушить RFC 793 (TCP) и обойти сетевые лову...Как HeadHunter удалось безопасно нарушить RFC 793 (TCP) и обойти сетевые лову...
Как HeadHunter удалось безопасно нарушить RFC 793 (TCP) и обойти сетевые лову...Ontico
 
Open ZFS Keynote (public)
Open ZFS Keynote (public)Open ZFS Keynote (public)
Open ZFS Keynote (public)Dustin Kirkland
 

La actualidad más candente (20)

AOS Lab 2: Hello, xv6!
AOS Lab 2: Hello, xv6!AOS Lab 2: Hello, xv6!
AOS Lab 2: Hello, xv6!
 
Hacking the swisscom modem
Hacking the swisscom modemHacking the swisscom modem
Hacking the swisscom modem
 
Metasploitable
MetasploitableMetasploitable
Metasploitable
 
Kernel Recipes 2019 - Faster IO through io_uring
Kernel Recipes 2019 - Faster IO through io_uringKernel Recipes 2019 - Faster IO through io_uring
Kernel Recipes 2019 - Faster IO through io_uring
 
Proactive monitoring with Monit
Proactive monitoring with MonitProactive monitoring with Monit
Proactive monitoring with Monit
 
AOS Lab 1: Hello, Linux!
AOS Lab 1: Hello, Linux!AOS Lab 1: Hello, Linux!
AOS Lab 1: Hello, Linux!
 
Sistemas operacionais 8
Sistemas operacionais 8Sistemas operacionais 8
Sistemas operacionais 8
 
Building Network Functions with eBPF & BCC
Building Network Functions with eBPF & BCCBuilding Network Functions with eBPF & BCC
Building Network Functions with eBPF & BCC
 
Fun with FUSE
Fun with FUSEFun with FUSE
Fun with FUSE
 
Introduction to eBPF and XDP
Introduction to eBPF and XDPIntroduction to eBPF and XDP
Introduction to eBPF and XDP
 
Configuring Syslog by Octavio
Configuring Syslog by OctavioConfiguring Syslog by Octavio
Configuring Syslog by Octavio
 
Reverse engineering Swisscom's Centro Grande Modem
Reverse engineering Swisscom's Centro Grande ModemReverse engineering Swisscom's Centro Grande Modem
Reverse engineering Swisscom's Centro Grande Modem
 
Log
LogLog
Log
 
Kqueue : Generic Event notification
Kqueue : Generic Event notificationKqueue : Generic Event notification
Kqueue : Generic Event notification
 
Linux Network commands
Linux Network commandsLinux Network commands
Linux Network commands
 
Monit
MonitMonit
Monit
 
Как HeadHunter удалось безопасно нарушить RFC 793 (TCP) и обойти сетевые лову...
Как HeadHunter удалось безопасно нарушить RFC 793 (TCP) и обойти сетевые лову...Как HeadHunter удалось безопасно нарушить RFC 793 (TCP) и обойти сетевые лову...
Как HeadHunter удалось безопасно нарушить RFC 793 (TCP) и обойти сетевые лову...
 
Как HeadHunter удалось безопасно нарушить RFC 793 (TCP) и обойти сетевые лову...
Как HeadHunter удалось безопасно нарушить RFC 793 (TCP) и обойти сетевые лову...Как HeadHunter удалось безопасно нарушить RFC 793 (TCP) и обойти сетевые лову...
Как HeadHunter удалось безопасно нарушить RFC 793 (TCP) и обойти сетевые лову...
 
Open ZFS Keynote (public)
Open ZFS Keynote (public)Open ZFS Keynote (public)
Open ZFS Keynote (public)
 
UNIX Notes
UNIX NotesUNIX Notes
UNIX Notes
 

Similar a Linux Server CPU Multi-Tasking Process

Servers and Processes: Behavior and Analysis
Servers and Processes: Behavior and AnalysisServers and Processes: Behavior and Analysis
Servers and Processes: Behavior and Analysisdreamwidth
 
Operating System 3
Operating System 3Operating System 3
Operating System 3tech2click
 
How to Diagnose Problems Quickly on Linux Servers
How to Diagnose Problems Quickly on Linux ServersHow to Diagnose Problems Quickly on Linux Servers
How to Diagnose Problems Quickly on Linux ServersRichard Cunningham
 
Pf: the OpenBSD packet filter
Pf: the OpenBSD packet filterPf: the OpenBSD packet filter
Pf: the OpenBSD packet filterGiovanni Bechis
 
Interview questions
Interview questionsInterview questions
Interview questionsxavier john
 
NUSE (Network Stack in Userspace) at #osio
NUSE (Network Stack in Userspace) at #osioNUSE (Network Stack in Userspace) at #osio
NUSE (Network Stack in Userspace) at #osioHajime Tazaki
 
1032 cs208 g operation system ip camera case share.v0.2
1032 cs208 g operation system ip camera case share.v0.21032 cs208 g operation system ip camera case share.v0.2
1032 cs208 g operation system ip camera case share.v0.2Stanley Ho
 
Sourcefire Vulnerability Research Team Labs
Sourcefire Vulnerability Research Team LabsSourcefire Vulnerability Research Team Labs
Sourcefire Vulnerability Research Team Labslosalamos
 
Jörg Schad - NO ONE PUTS Java IN THE CONTAINER - Codemotion Milan 2017
Jörg Schad - NO ONE PUTS Java IN THE CONTAINER - Codemotion Milan 2017Jörg Schad - NO ONE PUTS Java IN THE CONTAINER - Codemotion Milan 2017
Jörg Schad - NO ONE PUTS Java IN THE CONTAINER - Codemotion Milan 2017Codemotion
 
A New Framework for Detection
A New Framework for DetectionA New Framework for Detection
A New Framework for DetectionSourcefire VRT
 
Linux process management
Linux process managementLinux process management
Linux process managementRaghu nath
 
Network operating systems
Network operating systemsNetwork operating systems
Network operating systemsAnkit Kumar
 
Containers with systemd-nspawn
Containers with systemd-nspawnContainers with systemd-nspawn
Containers with systemd-nspawnGábor Nyers
 
Linux Systems Performance 2016
Linux Systems Performance 2016Linux Systems Performance 2016
Linux Systems Performance 2016Brendan Gregg
 
Hunting Mac Malware with Memory Forensics
Hunting Mac Malware with Memory ForensicsHunting Mac Malware with Memory Forensics
Hunting Mac Malware with Memory ForensicsAndrew Case
 
Hunting Mac Malware with Memory Forensics
Hunting Mac Malware with Memory ForensicsHunting Mac Malware with Memory Forensics
Hunting Mac Malware with Memory ForensicsAndrew Case
 

Similar a Linux Server CPU Multi-Tasking Process (20)

Servers and Processes: Behavior and Analysis
Servers and Processes: Behavior and AnalysisServers and Processes: Behavior and Analysis
Servers and Processes: Behavior and Analysis
 
Operating System 3
Operating System 3Operating System 3
Operating System 3
 
How to Diagnose Problems Quickly on Linux Servers
How to Diagnose Problems Quickly on Linux ServersHow to Diagnose Problems Quickly on Linux Servers
How to Diagnose Problems Quickly on Linux Servers
 
Pf: the OpenBSD packet filter
Pf: the OpenBSD packet filterPf: the OpenBSD packet filter
Pf: the OpenBSD packet filter
 
Interview questions
Interview questionsInterview questions
Interview questions
 
NUSE (Network Stack in Userspace) at #osio
NUSE (Network Stack in Userspace) at #osioNUSE (Network Stack in Userspace) at #osio
NUSE (Network Stack in Userspace) at #osio
 
1032 cs208 g operation system ip camera case share.v0.2
1032 cs208 g operation system ip camera case share.v0.21032 cs208 g operation system ip camera case share.v0.2
1032 cs208 g operation system ip camera case share.v0.2
 
Sourcefire Vulnerability Research Team Labs
Sourcefire Vulnerability Research Team LabsSourcefire Vulnerability Research Team Labs
Sourcefire Vulnerability Research Team Labs
 
Jörg Schad - NO ONE PUTS Java IN THE CONTAINER - Codemotion Milan 2017
Jörg Schad - NO ONE PUTS Java IN THE CONTAINER - Codemotion Milan 2017Jörg Schad - NO ONE PUTS Java IN THE CONTAINER - Codemotion Milan 2017
Jörg Schad - NO ONE PUTS Java IN THE CONTAINER - Codemotion Milan 2017
 
A New Framework for Detection
A New Framework for DetectionA New Framework for Detection
A New Framework for Detection
 
Linux process management
Linux process managementLinux process management
Linux process management
 
Network operating systems
Network operating systemsNetwork operating systems
Network operating systems
 
Network operating systems
Network operating systemsNetwork operating systems
Network operating systems
 
1230 Rtf Final
1230 Rtf Final1230 Rtf Final
1230 Rtf Final
 
Containers with systemd-nspawn
Containers with systemd-nspawnContainers with systemd-nspawn
Containers with systemd-nspawn
 
Lxbrand
LxbrandLxbrand
Lxbrand
 
Dpdk applications
Dpdk applicationsDpdk applications
Dpdk applications
 
Linux Systems Performance 2016
Linux Systems Performance 2016Linux Systems Performance 2016
Linux Systems Performance 2016
 
Hunting Mac Malware with Memory Forensics
Hunting Mac Malware with Memory ForensicsHunting Mac Malware with Memory Forensics
Hunting Mac Malware with Memory Forensics
 
Hunting Mac Malware with Memory Forensics
Hunting Mac Malware with Memory ForensicsHunting Mac Malware with Memory Forensics
Hunting Mac Malware with Memory Forensics
 

Último

Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Americas Got Grants
 
Market Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMarket Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMintel Group
 
Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...Peter Ward
 
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptxThe-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptxmbikashkanyari
 
Kenya Coconut Production Presentation by Dr. Lalith Perera
Kenya Coconut Production Presentation by Dr. Lalith PereraKenya Coconut Production Presentation by Dr. Lalith Perera
Kenya Coconut Production Presentation by Dr. Lalith Pereraictsugar
 
MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?Olivia Kresic
 
Entrepreneurship lessons in Philippines
Entrepreneurship lessons in  PhilippinesEntrepreneurship lessons in  Philippines
Entrepreneurship lessons in PhilippinesDavidSamuel525586
 
Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03DallasHaselhorst
 
Chapter 9 PPT 4th edition.pdf internal audit
Chapter 9 PPT 4th edition.pdf internal auditChapter 9 PPT 4th edition.pdf internal audit
Chapter 9 PPT 4th edition.pdf internal auditNhtLNguyn9
 
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckPitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckHajeJanKamps
 
Guide Complete Set of Residential Architectural Drawings PDF
Guide Complete Set of Residential Architectural Drawings PDFGuide Complete Set of Residential Architectural Drawings PDF
Guide Complete Set of Residential Architectural Drawings PDFChandresh Chudasama
 
Cyber Security Training in Office Environment
Cyber Security Training in Office EnvironmentCyber Security Training in Office Environment
Cyber Security Training in Office Environmentelijahj01012
 
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCRashishs7044
 
PSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationPSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationAnamaria Contreras
 
Financial-Statement-Analysis-of-Coca-cola-Company.pptx
Financial-Statement-Analysis-of-Coca-cola-Company.pptxFinancial-Statement-Analysis-of-Coca-cola-Company.pptx
Financial-Statement-Analysis-of-Coca-cola-Company.pptxsaniyaimamuddin
 
APRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfAPRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfRbc Rbcua
 
Innovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdfInnovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdfrichard876048
 

Último (20)

No-1 Call Girls In Goa 93193 VIP 73153 Escort service In North Goa Panaji, Ca...
No-1 Call Girls In Goa 93193 VIP 73153 Escort service In North Goa Panaji, Ca...No-1 Call Girls In Goa 93193 VIP 73153 Escort service In North Goa Panaji, Ca...
No-1 Call Girls In Goa 93193 VIP 73153 Escort service In North Goa Panaji, Ca...
 
Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...
 
Market Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMarket Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 Edition
 
Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...
 
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptxThe-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
 
Kenya Coconut Production Presentation by Dr. Lalith Perera
Kenya Coconut Production Presentation by Dr. Lalith PereraKenya Coconut Production Presentation by Dr. Lalith Perera
Kenya Coconut Production Presentation by Dr. Lalith Perera
 
MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?
 
Entrepreneurship lessons in Philippines
Entrepreneurship lessons in  PhilippinesEntrepreneurship lessons in  Philippines
Entrepreneurship lessons in Philippines
 
Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03
 
Enjoy ➥8448380779▻ Call Girls In Sector 18 Noida Escorts Delhi NCR
Enjoy ➥8448380779▻ Call Girls In Sector 18 Noida Escorts Delhi NCREnjoy ➥8448380779▻ Call Girls In Sector 18 Noida Escorts Delhi NCR
Enjoy ➥8448380779▻ Call Girls In Sector 18 Noida Escorts Delhi NCR
 
Chapter 9 PPT 4th edition.pdf internal audit
Chapter 9 PPT 4th edition.pdf internal auditChapter 9 PPT 4th edition.pdf internal audit
Chapter 9 PPT 4th edition.pdf internal audit
 
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckPitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
 
Guide Complete Set of Residential Architectural Drawings PDF
Guide Complete Set of Residential Architectural Drawings PDFGuide Complete Set of Residential Architectural Drawings PDF
Guide Complete Set of Residential Architectural Drawings PDF
 
Cyber Security Training in Office Environment
Cyber Security Training in Office EnvironmentCyber Security Training in Office Environment
Cyber Security Training in Office Environment
 
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
 
PSCC - Capability Statement Presentation
PSCC - Capability Statement PresentationPSCC - Capability Statement Presentation
PSCC - Capability Statement Presentation
 
Financial-Statement-Analysis-of-Coca-cola-Company.pptx
Financial-Statement-Analysis-of-Coca-cola-Company.pptxFinancial-Statement-Analysis-of-Coca-cola-Company.pptx
Financial-Statement-Analysis-of-Coca-cola-Company.pptx
 
Japan IT Week 2024 Brochure by 47Billion (English)
Japan IT Week 2024 Brochure by 47Billion (English)Japan IT Week 2024 Brochure by 47Billion (English)
Japan IT Week 2024 Brochure by 47Billion (English)
 
APRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfAPRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdf
 
Innovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdfInnovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdf
 

Linux Server CPU Multi-Tasking Process

  • 2. Multi User 3. boot CD-ROM CD-ROM iso Install Ubuntu Server
  • 4. 4. Keyboard ? No ( TAB Enter 5. Keyboard layout English Thai
  • 8. 11. password account 12. password 13. password password ? yes
  • 9. 14. Encrypt) ? NO ( 15. Network time server
  • 10. Cancel 15.1 cancel Time zone Asia/Bangkok Yes 16. Partition Harddisk
  • 11. Guided - use entire disk and set up LVM 17. Partiton 18. Disk LVM ? Yes
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19. 5. CPU 1 1. Process id) 2. Program code) 3. Data) 4. Process control block) 4.1 Pointer) 4.2 Process state) 4.3 Program id) 4.4 Program counter) 4.5 Register) 4.6 CPU scheduling information) 4.7 Memory management information) 4.8 Account information) 4.9 I/O status information)
  • 20. pointer process state process id process counter registers list of open files ::: ::: 5. PSW (Program status word) 6. Properties of process) 6.1 Priority) 6.2 Authority) 6.3 2 6 1. New : The process is being created.) 2. Ready : The process is waiting to be assigned to a processor.) 3. Running : Instructions are being executed.) 4. Wait : The process is waiting for some event to occur.) 5. Block : The process is blocked for some event to occur.) 6. Terminate : The process has finished execution.) 4 1. ready state) 2. running state)
  • 21. 3. blocked state) 4. suspend state) 3 process process CPU process 1. Device queue I/O child process job queue queue process ready, blocked running process I/O devices device queue device queue processes queue scheduler Device queue scheduler scheduler process 2. Contect switch process
  • 22. OS Process Process saving the stat of the old process and loading the saved state for the new process context switch context of process PCB of a process Mutual exclusion process Critical region process Critical region 4 mutual exclusion 1. process critical region 2. 3. process critical region block process 4. process critical region Mutual exclusion with busy waiting 5. Disable interrupt 6. Lock variable 7. Strict alternation 8. Peterson's solution 9. TSL instruction 4 process Parent process) Children process) process tree of process on a typical UNIX system 1. Process creation)
  • 23. process process execute 1. (The parent continues to execute concurrently with its children.) 2. (The parent waits until some or all of its children have terminated.) process process address 1. address (The child process is a duplicate of the parent process.) 2. load address (The child process has a program loaded into it.) 2. Process termination) 3 1. resource 2. 3. OS process Linux [root@yn1 root]# ps -aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 1376 84 ? S Oct08 0:12 init root 1482 0.0 0.0 1440 156 ? S Oct08 0:32 syslogd -m 0 root 1486 0.0 0.0 1368 4 ? S Oct08 0:00 klogd -x rpc 1504 0.0 0.0 1540 0 ? SW Oct08 0:00 [portmap] rpcuser 1523 0.0 0.0 1680 0 ? SW Oct08 0:00 [rpc.statd] named 1620 0.0 1.9 41836 5040 ? S Oct08 6:16 [named] root 1635 0.0 0.1 3508 300 ? S Oct08 0:05 /usr/sbin/sshd root 1649 0.0 0.1 2024 368 ? S Oct08 0:02 xinetd -stayalive root 1659 0.0 0.0 1596 88 ? S Oct08 0:00 /usr/sbin/vsftpd root 1680 0.0 0.2 5920 548 ? S Oct08 0:52 [sendmail] smmsp 1689 0.0 0.1 5716 316 ? S Oct08 0:00 [sendmail] apache 9825 99.9 0.0 0 0 ? RW Oct08 15286:48 [httpd] root 10719 0.0 0.0 17200 96 ? S Oct18 0:02 /usr/sbin/httpd apache 15017 0.0 3.0 22708 7860 ? S Oct18 0:07 [httpd]
  • 24. apache 15018 0.0 2.8 23940 7312 ? S Oct18 0:06 [httpd] apache 18350 0.0 3.3 27072 8604 ? S 08:23 0:06 [httpd] root 22018 0.0 0.8 6268 2108 ? S 13:16 0:00 [sendmail] 5. Cooperating process) 2 Independent process) Cooperating process) 1. Information sharing) 2. Computation speedup) 3. Modularity) 4. Convenience) 6. Interprocess communication : IPC) 6.1 Message-passing system) IPC 2 Send(message) Receive(message) - - Direct or indirect communication ( - Symmetric or asymmetric communication ( - Automatic or explicit buffering (Explicit = - Send by copy or send by reference - Fixed-sized or variable-sized messages 6.2 Naming) 6.2.1 Direct communication A B send(B,message) B 6.2.2 Indirect communication receive(A,message) A
  • 25. mailbox port mail box mail box share mail box mail box mail box 3 1. Queue mailbox block First In First Out) 2. Pipe mailbox 3. Stack mailbox First In Last Out) 6.3 Synchronization) send receive blocking nonblocking deadlock 4 - Blocking send : The sending process is blocked until the message is received by the receiving process or by the mailbox. - Nonblocking send : The sending process sends the message and resumes operation. - Blocking receive : The receiver blocks until a message is available. - Nonblocking receive: The receiver retrieves either a valid message or a null. 6.4 Buffering) 3 - Zero capacity - Bounded capacity - Unbounded capacity 7. 1. Single processing) Sequential processing (one result / m cycles) 2. Multi processing) Pipelining (one result / cycle) 3. Parallel processing) Parallel processing (n results / m cycles)
  • 26. 6. process Parent process) Children process) process tree of process on a typical UNIX system 1. Process creation) process process execute 1. (The parent continues to execute concurrently with its children.) 2. (The parent waits until some or all of its children have terminated.) process process address 1. address (The child process is a duplicate of the parent process.) 2. load address (The child process has a program loaded into it.) 2. Process termination) 3 1. resource 2. 3. OS process Linux [root@yn1 root]# ps -aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 1376 84 ? S Oct08 0:12 init root 1482 0.0 0.0 1440 156 ? S Oct08 0:32 syslogd -m 0 root 1486 0.0 0.0 1368 4 ? S Oct08 0:00 klogd -x rpc 1504 0.0 0.0 1540 0 ? SW Oct08 0:00 [portmap] rpcuser 1523 0.0 0.0 1680 0 ? SW Oct08 0:00 [rpc.statd]
  • 27. named 1620 0.0 1.9 41836 5040 ? S Oct08 6:16 [named] root 1635 0.0 0.1 3508 300 ? S Oct08 0:05 /usr/sbin/sshd root 1649 0.0 0.1 2024 368 ? S Oct08 0:02 xinetd -stayalive root 1659 0.0 0.0 1596 88 ? S Oct08 0:00 /usr/sbin/vsftpd root 1680 0.0 0.2 5920 548 ? S Oct08 0:52 [sendmail] smmsp 1689 0.0 0.1 5716 316 ? S Oct08 0:00 [sendmail] apache 9825 99.9 0.0 0 0 ? RW Oct08 15286:48 [httpd] root 10719 0.0 0.0 17200 96 ? S Oct18 0:02 /usr/sbin/httpd apache 15017 0.0 3.0 22708 7860 ? S Oct18 0:07 [httpd] apache 15018 0.0 2.8 23940 7312 ? S Oct18 0:06 [httpd] apache 18350 0.0 3.3 27072 8604 ? S 08:23 0:06 [httpd] root 22018 0.0 0.8 6268 2108 ? S 13:16 0:00 [sendmail] 7.7
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42. 8.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54. 1. operating system) OS) 2. Apache Web server HTTPD Web Server Apache Homepage Homepage Browser Web server HomePage web server mod_perl,mod_python mod_php HTML Download website www.apache.org 3. MySQL MySQL AB SQL Web Server) Server-Side Script) 4. joomla CMS CMS CMS Content Management System" Code HTML, PHP, SQL CMS Code