27
Kittiphan Techakittiroj (20 มม.ม. Operating Systems: OS for Client and Server Kittiphan Techakittiroj [email protected]

Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj [email protected]

Embed Size (px)

Citation preview

Page 1: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

Operating Systems:OS for Client and Server

Kittiphan Techakittiroj

[email protected]

Page 2: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

• Server

– Job of Server

– What do servers need from OS?

• Client

– Job of Client

– What do clients need from OS?

• Examples

Agenda

Page 3: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

• Waits for Client-Initiated Requests: polling or

dedicated session

• Executes many requests at the same time: multi-threaded or multi-process, sharing resource

(e.g. network connections, files)

• Service Priority: VIP clients

Server Characteristics

Page 4: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

• Initiates and runs background-task activity: sch

eduling (corn in UNIX)

• Reliability: stable, reliable

• Expanable: bigger, fatter, faster

Server Characteristics cont.

Page 5: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

• Base Services

– standard for most OS

– built-in

• Extended Services

– add-on modular software

no definite line between these two

change with time

What do servers need from OS?

Page 6: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

• Multi-tasking Environment

• Task Management

• Resource Management

• Process Communication

Base ServicesWhat do servers need from OS?

Page 7: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

• Standard Requirement

• Two main categories:

– Process: different programs communicate to each

other.

– Thread: same program run many tasks.

• Faster to Create

• Faster to Context Switch

• Easier to access shared information

Concurrent ProgrammingWhat do servers need from OS?: Base Services

Page 8: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

• Task Preemption: allow switch between tasks

• Task Priority

• Intertask Protection: protect tasks from interf

ering with each other

Task ManagementWhat do servers need from OS?: Base Services

Page 9: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

• File System

– lock mechanism to protect the integrity

– large number of file handle

• Memory management

– swap mechanism

Resource ManagementWhat do servers need from OS?: Base Services

Page 10: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

• Interprocess Communications (IPC): allow proce

sses to talk to each other

• Local/Remote Interprocess Communications: transparent between local and remote

Process CommunicationWhat do servers need from OS?: Base Services

Page 11: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

• Easier to

Implement

• Reliable

• Portable

• Expandable

Extended ServicesWhat do servers need from OS?

Page 12: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

• Ubiquitous Communications: provide variety of

communications protocol

• Network Operating System Extensions: file and

print services over the network

• Internet Services: web servers, ftp servers

• Global Directories and Network Yellow Pages

NetworkingWhat do servers need from OS?: Extended Services

Page 13: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

• Binary Large Objects (BLOBs): keeping larg

e object as one single object

• Network Time: allow time synchronization

• Data and Transaction Services: SQL, Transac

tion Processing Monitor

• Authentication and Authorization Services: mainly for security

• System Management

SupportingWhat do servers need from OS?: Extended Services

Page 14: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

• Object-Oriented

Services

• Support of

Multi-processor:

– Asymmetric

Multiprocessing

– Symmetric

Multiprocessing

Supporting cont.

What do servers need from OS?: Extended Services

Page 15: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

• Non-GUI: no UI or Text-based UI

• simple GUI-Client (Graphical UI)

• OOUI Client (Object-Oriented UI)

no definite line between them

Client Characteristics

Page 16: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

• Do NOT Need Multi-tasking: automatic teller ma

chines (ATMs), barcode readers, cellular phone

• Need Multi-tasking: robots, computer numerical c

ontrol (CNCs)

Non-GUI ClientClient Characteristics

Page 17: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

What do clients need from OS?GUI OOUI

MultitaskRequest/Reply Yes Yes Yes YesFile Transfer Yes Yes Yes YesPreemptive Multitasking

No Yes Yes/No Yes

Task Priorities No Yes Yes/No YesInterprocess Communications

No Yes Yes/No Yes

Threads No Yes Yes/No YesOS robustness No Yes Yes/No Yes

Non-GUI

Page 18: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

• Client-OS: Windows98, MacOS

• Server-OS: WindowsNT Server, AIX

• Both: Linux

OS Examples

Page 19: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

• Windows 3.1

• Windows 95 & 98

• WindowsNT Client

• WindowsNT Server

• Advantage

– User Interface

– Support (Hardware, Technical)

Microsoft OSOS Examples

Page 20: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

• Designed mainly to be workstation

MacOSOS Examples

Page 21: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

• Old system: VAX/VMS

• Usually not support the connectivity

between computer

• Proprietary Systems

Legacy SystemOS Examples

Page 22: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

• Specific Vendors: HP (HP/UX), Sun (Solaris), SGI

(IRIX), IBM (AIX)

• Customized for Specific Machine

• Advantage

– Connectivity

– Stability

– Scalability

– Multi-user

– Multi-tasking

Proprietary UNIXOS Examples

Page 23: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

• Freeware

• Advantage

– Low Cost

– Multi-platform: 386-based system, SPARC,

PowerPC, Digital Alpha, etc.

– Advantage of normal UNIX

LinuxOS Examples

Page 24: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

OS Comparision

http://www.netshooter.com/linux/oscomp.html

Page 25: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

OS Comparision cont.

Page 26: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

Guide to Choose OS

• Addresses your current needs

• Interoperability

• Support for different hardware platforms

• Maintainability

Page 27: Kittiphan Techakittiroj (19/09/58 09:28 น. 19/09/58 09:28 น. 19/09/58 09:28 น.) Operating Systems: OS for Client and Server Kittiphan Techakittiroj engktc@au.ac.th

Kittiphan Techakittiroj (19 . . 2566เม ย )

Reference Books

Client/server survival guide 3rd edition by Robert Orf

ali, Dan Harkey, Jeri Edwards (John Wiley & Son

s: 1999)

Operating Systems Comparision by Phil Hughes (htt

p://www.netshooter.com/linux/oscomp.html: Jan 1

999)