X-WindowsP.K.K.Thambi The X Window System Module 5.

Slides:



Advertisements
Similar presentations
1 Symbian Client Server Architecture. 2 Client, who (a software module) needs service from service provider (another software module) Server, who provide.
Advertisements

FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5.
CS 497C – Introduction to UNIX Lecture 37: - X Windows Chin-Chih Chang
X Ricardo A. Baratto NCL. Overview System overview X protocol X server Architecture Porting process XFree86 (device drivers)
Categories of I/O Devices
Threads, SMP, and Microkernels
Operating System Structures
X Window JianJing Cao (ID #98284). Content Introduction X Window System Function Window Principle How X Window Works Security.
COURSE: COMPUTER PLATFORMS
Remote Procedure Call (RPC)
Chap 2 System Structures.
Operating-System Structures
UNIX Chapter 01 Overview of Operating Systems Mr. Mohammad A. Smirat.
TCP/IP Protocol Suite 1 Chapter 18 Upon completion you will be able to: Remote Login: Telnet Understand how TELNET works Understand the role of NVT in.
1 Java Networking – Part I CS , Spring 2008/9.
Chapter 2: Operating-System Structures
1 Chapter 4 Threads Threads: Resource ownership and execution.
Copyright Arshi Khan1 System Programming Instructor Arshi Khan.
CSIT 320 (Blum)1 Client-Server Interaction Based on Appendix 1 in Computer Networks and Internets, Comer.
1 Input/Output. 2 Principles of I/O Hardware Some typical device, network, and data base rates.
TCP/IP protocols Communication over Internet is mostly TCP/IP (Transmission Control Protocol over Internet Protocol) TCP/IP "stack" is software which allows.
Chapter 17 Networking Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William Stallings.
1 Chapter Client-Server Interaction. 2 Functionality  Transport layer and layers below  Basic communication  Reliability  Application layer.
Operating Systems CS3502 Fall 2014 Dr. Jose M. Garrido
1 Lecture 20: I/O n I/O hardware n I/O structure n communication with controllers n device interrupts n device drivers n streams.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 14, 2005 Operating System.
COT 4600 Operating Systems Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 3:00-4:00 PM.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 2: Operating-System Structures Operating.
2001 Networking Operating Systems (CO32010) 1. Operating Systems 2. Processes and scheduling 3.
Chapter 34 Java Technology for Active Web Documents methods used to provide continuous Web updates to browser – Server push – Active documents.
Gary MarsdenSlide 1University of Cape Town Human-Computer Interaction - 3 Programmer Support Gary Marsden ( ) July 2002.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 6 System Calls OS System.
Windows NT Operating System. Windows NT Models Layered Model Client/Server Model Object Model Symmetric Multiprocessing.
1. I NTRODUCTION TO N ETWORKS Network programming is surprisingly easy in Java ◦ Most of the classes relevant to network programming are in the java.net.
Chapter 15 – Part 2 Networks The Internal Operating System The Architecture of Computer Hardware and Systems Software: An Information Technology Approach.
CE Operating Systems Lecture 3 Overview of OS functions and structure.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3.
Processes Introduction to Operating Systems: Module 3.
CMPF124 Basic Skills For Knowledge Workers Chapter 1 – Part 1 Introduction To Windows Operating Systems CMPF 112 : COMPUTING SKILLS.
CS 158A1 1.4 Implementing Network Software Phenomenal success of the Internet: – Computer # connected doubled every year since 1981, now approaching 200.
Operating System Organization Chapter 3 Michelle Grieco.
Chapter Eleven The X Window System. 2 Lesson A Starting and Navigating an X Window System.
File Systems cs550 Operating Systems David Monismith.
1 Kyung Hee University Chapter 11 User Datagram Protocol.
Major OS Components CS 416: Operating Systems Design, Spring 2001 Department of Computer Science Rutgers University
An operating system (OS) is a collection of system programs that together control the operation of a computer system.
1 Network Communications A Brief Introduction. 2 Network Communications.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
X Window System
Introduction to Operating Systems Concepts
Computer System Structures
Client-Server Communication
File System Implementation
Chapter 2: Operating-System Structures
Module 4 Remote Login.
Chapter 2: System Structures
Telemedicine.
Event Driven Programming Dick Steflik
Operating System Structure
Introduction to Operating System (OS)
Prepared by: Ms. Amira al-Ghanem Prepared for: Ms. Omarine
Chapter 3: Windows7 Part 4.
Ch > 28.4.
TCP/IP Networking An Example
Chapter 2: System Structures
X Windows.
Chapter 1 Introduction to Operating System Part 5
Chapter 2: Operating-System Structures
Applications Layer Functionality & Protocols
Presentation transcript:

X-WindowsP.K.K.Thambi The X Window System Module 5

X-WindowsP.K.K.Thambi X Window System  The X Window system was developed as part of Project Athena at MIT. In 1987, X Version 11 is released. X is now controlled and maintained by the Open Group.  The X Windows System, also referred to as ‘X’ or “X11”, is the standard graphical engine for Unix, Linux and Sun workstations.  It is largely OS and hardware independent, it is network-transparent, and it supports many different desktops.

X-WindowsP.K.K.Thambi The Graphic User Interface in X  X Window uses a bit-mapped display where each pixel can be manipulated individually.  The entire display is known as the root window, and individual applications are displayed as windows on this root window.  X is started with the startx or xinit commands. –X can also be invoked during system startup

X-WindowsP.K.K.Thambi X-window Screen

X-WindowsP.K.K.Thambi Client / Server Architecture  Separate programs that talks together for a specific aim.  Server will be the program that supplies the services and the client is who make the requests.

X-WindowsP.K.K.Thambi X Window Clients and Servers  Although you can easily use the X Window system to run programs stored on your local computer, you can also run applications over the network  X Window uses a client/server model in which a program can run on one computer but display its output on another  The desktop system from which you run a program is called the X server, the system that hosts and executes the program is called the X client (this is opposite of normal networking)

X-WindowsP.K.K.Thambi X Protocol  Based on TCP/IP stack  The X Protocol provides a client-server architecture at the application level:  The X client is the processing part of the application and often runs on a remote machine.  The X server is the display and interaction system.

X-WindowsP.K.K.Thambi X Protocol cont’d The X Protocol is also divided into device dependent and device independent layers.

X-WindowsP.K.K.Thambi X architecture The client-server nature of the X Protocol allows a single X server to support many clients (applications) on several hosts.

X-WindowsP.K.K.Thambi Client-Server Window System Application 1Application 2Application n Client Application Programs Virtual display 1 Virtual display n Resource allocator Device driver Window 2 Window n Window 1 MouseKeyboard (After Fig 10.2, Dix, Finlay, Abowd and Beale) Virtual display 2 Server Devices Device-independent abstraction level Translates abstraction into reality: one per terminal type Could be Window Manager

X-WindowsP.K.K.Thambi X Server Design  Device Dependent Layer –It is this layer that is responsible for localizing the X server to the native environment, be it Windows NT or Solaris. –This layer swaps bytes of data from machines with differing byte ordering. Byte ordering (MSB and LSB) is noted in each X request. –This layer hides the architectural differences in hardware and operating systems. –Maintains device driver dependencies for keyboard, mouse and video.

X-WindowsP.K.K.Thambi X Server The X server therefore:  displays drawing requests on the screen.  replies to information requests.  reports an error in a request.  Manages the keyboard, mouse and display device. –Multiplexes keyboard and mouse input onto the network (or via local IPC) to the respective X clients. (X events)  creates, maps and destroys windows. –writes and draws in windows

X-WindowsP.K.K.Thambi X Client sends requests to the server. receives events from server. receives errors from the server

X-WindowsP.K.K.Thambi X Protocol  X client communicate with X server using the X protocol.  Data is exchanged in an asynchronous manner over a two-way communication path that enables transmission of a stream of 8 –bit bytes.  X protocol is the machine language for the X Window system

X-WindowsP.K.K.Thambi X Protocol messages  Requests – client sends requests to the server (e.g. create window)  Replies – server response to client requests  Events – server forwards events (such as mouse clicks or keyboard entry) to the client  Errors – server reports errors to the client

X-WindowsP.K.K.Thambi Protocol Messages - Requests Requests  X clients make requests to the X server for a certain action to take place. i.e.: Create Window  To enhance performance, the X client normally does not expect nor wait for a response. The request is typically left to the reliable network layer to deliver.

X-WindowsP.K.K.Thambi Protocol Messages - Replies Replies  The X Server will respond to certain X client requests that require a reply. As noted, not all requests require a reply.

X-WindowsP.K.K.Thambi Protocol Messages - Events Events  The X server will forward to the X client an event that the application is expecting. This could include keyboard or mouse input. To minimize network traffic, only expected events are sent to X clients.  X events are 32 bytes

X-WindowsP.K.K.Thambi Protocol Messages - Errors Errors  The X server will report errors in requests to the X client. Errors are like an event but are handled differently.  X errors are the same size as events to simplify their handling. They are sent to the error handling routine of the X client.

X-WindowsP.K.K.Thambi Xlib: The Assemble language of X  A set of C library of X window system  Xlib gives you access to the X protocol through more than 300 utility routines.  It is the The Assemble language of X Window System.

X-WindowsP.K.K.Thambi X Toolkit: The High level language of X  XToolkit Intrinsic (Xt Intrinsic) – an object- oriented approach to implement the basic building blocks called widgets

X-WindowsP.K.K.Thambi Structure of an X application X application X toolkit Xt intrinsic Xlib X protocol X Server Device- dependent Layer X protocol Network Interface User