MODERN OPERATING SYSTEMS Third Edition ANDREW S

Slides:



Advertisements
Similar presentations
A Graduate Course on Multimedia Technology 3. Multimedia Communication © Wolfgang Effelsberg Media Scaling and Media Filtering Definition of.
Advertisements

CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 28 – Media Server (Part 3) Klara Nahrstedt Spring 2009.
Continuous Media 1 Differs significantly from textual and numeric data because of two fundamental characteristics: –Real-time storage and retrieval –High.
Multimedia Systems As Presented by: Craig Tomastik.
Chapter 20: Multimedia Systems Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 20: Multimedia Systems What is Multimedia.
Chapter 7 : Multimedia OS
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 20: Multimedia Systems.
1 Multimedia Chapter Introduction to multimedia 7.2 Multimedia files 7.3 Video compression 7.4 Multimedia process scheduling 7.5 Multimedia file.
Chapter 7 End-to-End Data
Spring 2003CS 4611 Multimedia Outline Compression RTP Scheduling.
CS-3013 & CS-502, Summer 2006 Multimedia topics (continued)1 Multimedia Topics (continued) CS-3013 & CS-502 Operating Systems.
Multimedia Systems 1 CS502 Spring 2006 Multimedia Systems CS-502 Operating Systems.
Chapter 7 : Multimedia OS
CS-3013 & CS-502, Summer 2006 Multimedia topics1 Multimedia CS-3013 & CS-502 Operating Systems.
Chapter 7 Multimedia Operating Systems File System Paradigms File Replacement Caching Disk Scheduling.
Chapter 7 Multimedia Operating Systems
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
Multimedia Retrieval Architecture Anandi Giridharan Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India Multimedia.
Multimedia Systems (Part 2)
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 34 – Media Server (Part 3) Klara Nahrstedt Spring 2012.
Why Compress? To reduce the volume of data to be transmitted (text, fax, images) To reduce the bandwidth required for transmission and to reduce storage.
On Error Preserving Encryption Algorithms for Wireless Video Transmission Ali Saman Tosun and Wu-Chi Feng The Ohio State University Department of Computer.
CSE679: MPEG r MPEG-1 r MPEG-2. MPEG r MPEG: Motion Pictures Experts Group r Standard for encoding videos/movies/motion pictures r Evolving set of standards.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 32 – Media Server (Part 2) Klara Nahrstedt Spring 2012.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 28 – Media Server (Part 4) Klara Nahrstedt Spring 2011.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The Application Layer Chapter 7.
The Application Layer Chapter 7. DNS – The Domain Name System a)The DNS Name Space b)Resource Records c)Name Servers.
Joonwon Lee OS Support for Multimedia.
MPEG: (Moving Pictures Expert Group) A Video Compression Standard for Multimedia Applications Seo Yeong Geon Dept. of Computer Science in GNU.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 19/20: Real-time and Multimedia Systems Inclusions from Tanenbaum,
Multimedia I (Audio/Video Data) CS423, Fall 2007 Klara Nahrstedt/Sam King 9/19/20151.
© 2011 The McGraw-Hill Companies, Inc. All rights reserved Chapter 6: Video.
XE33OSA Chapter 20: Multimedia Systems. 20.2XE33OSA Silberschatz, Galvin and Gagne ©2005 Chapter 20: Multimedia Systems What is Multimedia Compression.
Multimedia Operating Systems ●File System Paradigms ●File Replacement ●Caching ●Disk.
Dr. M. Munlin Real-Time and Multimedia Systems 1 NETE0516 Operating Systems Instructor: ผ. ศ. ดร. หมัดอามีน หมัน หลิน Faculty of Information Science and.
Multimedia Elements: Sound, Animation, and Video.
1 Lecture 17 – March 21, 2002 Content-delivery services. Multimedia services Reminder  next week individual meetings and project status report are due.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Multimedia Systems.
CIS679: Multimedia Basics r Multimedia data type r Basic compression techniques.
MULTIMEDIA TECHNOLOGY SMM 3001 MEDIA - VIDEO. In this chapter How digital video differs from conventional analog video How digital video differs from.
The Application Layer Chapter Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall,
CMPE 150 – Winter 2009 Lecture 19 March 12, 2009 P.E. Mantey.
MULTIMEDIA INPUT / OUTPUT TECHNOLOGIES
Compression video overview 演講者:林崇元. Outline Introduction Fundamentals of video compression Picture type Signal quality measure Video encoder and decoder.
MEMORY ORGANIZTION & ADDRESSING Presented by: Bshara Choufany.
Image Processing Architecture, © 2001, 2002, 2003 Oleh TretiakPage 1 ECE-C490 Image Processing Architecture MP-3 Compression Course Review Oleh Tretiak.
Spring 2000CS 4611 Multimedia Outline Compression RTP Scheduling.
Carnegie Mellon. Carnegie Mellon Video I Carnegie Mellon Digital Video Size quality Broadcast quality is very different from www MPEG-2 is satellite.
Marwan Al-Namari 1 Digital Representations. Bits and Bytes Devices can only be in one of two states 0 or 1, yes or no, on or off, … Bit: a unit of data.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
1 Multimedia Outline Compression RTP Scheduling. 2 Compression Overview Encoding and Compression –Huffman codes Lossless –data received = data sent –used.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 27 – Media Server (Part 2) Klara Nahrstedt Spring 2009.
Concepts Used to Create Digital Audio & Video Objectives &
Chapter 20: Multimedia Systems
Multimedia Systems Operating System Presentation On
Chapter 20: Multimedia Systems
Multimedia Outline Compression RTP Scheduling Spring 2000 CS 461.
Chapter 2 Scheduling.
Chapter 20: Multimedia Systems
Chapter 7 Multimedia 7.1 Introduction to multimedia
Chapter 7 Multimedia 7.1 Introduction to multimedia
Judith Molka-Danielsen, Oct. 02, 2000
Chapter 7 Multimedia 7.1 Introduction to multimedia
Chapter 7 Multimedia 7.1 Introduction to multimedia
Chapter 20: Multimedia Systems
Chapter 7 Multimedia 7.1 Introduction to multimedia
Chapter 20: Multimedia Systems
Chapter 20: Multimedia Systems
Presentation transcript:

MODERN OPERATING SYSTEMS Third Edition ANDREW S MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 7 Multimedia Operating Systems Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Introduction To Multimedia (1) Figure 7-1. Video on demand using different local distribution technologies. (a) ADSL. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Introduction To Multimedia (2) Figure 7-1. Video on demand using different local distribution technologies. (b) Cable TV. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Introduction To Multimedia (3) Key characteristics of multimedia: Multimedia uses extremely high data rates. Multimedia requires real-time playback. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Introduction To Multimedia (4) Figure 7-2. Some data rates for multimedia and high-performance I/O devices. Note that 1 Mbps is 106 bits/sec but 1 GB is 230 bytes. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Figure 7-3. A movie may consist of several files. Multimedia Files Figure 7-3. A movie may consist of several files. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Figure 7-4. The scanning pattern used for NTSC video and television. Video Encoding Figure 7-4. The scanning pattern used for NTSC video and television. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Audio Encoding Figure 7-5. (a) A sine wave. (b) Sampling the sine wave. (c) Quantizing the samples to 4 bits. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Figure 7-6. (a) RGB input data. (b) After block preparation. The JPEG Standard (1) Figure 7-6. (a) RGB input data. (b) After block preparation. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Figure 7-7. (a) One block of the Y matrix. (b) The DCT coefficients. The JPEG Standard (2) Figure 7-7. (a) One block of the Y matrix. (b) The DCT coefficients. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Figure 7-8. Computation of the quantized DCT coefficients. The JPEG Standard (3) Figure 7-8. Computation of the quantized DCT coefficients. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Figure 7-9. The order in which the quantized values are transmitted. The JPEG Standard (4) Figure 7-9. The order in which the quantized values are transmitted. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

The MPEG Standard (1) Three types of MPEG-2 frames processed by the viewing program: I (Intracoded) frames: Self-contained JPEG-encoded still pictures. P (Predictive) frames: Block-by-block difference with the last frame. B (Bidirectional) frames: Differences with the last and next frame. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Figure 7-10. Three consecutive video frames. The MPEG Standard (2) Figure 7-10. Three consecutive video frames. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Audio Compression (1) Figure 7-11. (a) A binary signal and its root-mean-square Fourier amplitudes. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Figure 7-11. (b)–(e) Successive approximations to the original signal. Audio Compression (2) Figure 7-11. (b)–(e) Successive approximations to the original signal. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Figure 7-11. (b)–(e) Successive approximations to the original signal. Audio Compression (3) Figure 7-11. (b)–(e) Successive approximations to the original signal. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Audio Compression (4) Figure 7-12. (a) The threshold of audibility as a function of frequency. (b) The masking effect. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Audio Compression (5) Possible sampling configurations: Monophonic (a single input stream). Dual monophonic (e.g., an English and a Japanese soundtrack). Disjoint stereo (each channel compressed separately). Joint stereo (interchannel redundancy fully exploited). Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

General Real-Time Scheduling Figure 7-13. Three periodic processes, each displaying a movie. The frame rates and processing requirements per frame are different for each movie. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Rate Monotonic Scheduling (1) Required conditions for RMS: Each periodic process must complete within its period. No process is dependent on any other process. Each process needs same amount of CPU time on each burst. Nonperiodic processes have no deadlines. Process preemption occurs instantaneously and with no overhead. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Rate Monotonic Scheduling (2) Figure 7-14. An example of RMS and EDF real-time scheduling. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Earliest Deadline First Scheduling Figure 7-15. Another example of real-time scheduling with RMS and EDF. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Multimedia File System Paradigms Figure 7-16. (a) A pull server. (b) A push server. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Near Video on Demand Figure 7-17. Near video on demand has a new stream starting at regular intervals, in this example every 5 minutes (9000 frames). Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Near Video on Demand with VCR Functions (1) Figure 7-18. (a) Initial situation. (b) After a rewind to 12 min Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Near Video on Demand with VCR Functions (2) Figure 7-18. (c) After waiting 3 min. (d) After starting to refill the buffer. (e) Buffer full. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Placing a File on a Single Disk Figure 7-19. Interleaving video, audio, and text in a single contiguous file per movie. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Two Alternative File Organization Strategies (1) Figure 7-20. Noncontiguous movie storage. (a) Small disk blocks. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Two Alternative File Organization Strategies (2) Figure 7-20. Noncontiguous movie storage (b) Large disk blocks. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Two Alternative File Organization Strategies (3) Trade-offs involved in these alternatives: Frame index: Heavier RAM usage while movie is playing; little disk wastage. Block index (no splitting frames over blocks): Low RAM usage; major disk wastage. Block index (splitting frames over blocks is allowed): Low RAM usage; no disk wastage; extra seeks. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Placing Files for Near Video on Demand Figure 7-21. Optimal frame placement for near video on demand. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Placing Multiple Files on a Single Disk (1) Figure 7-22. The curve gives Zipf’s law for N = 20. The squares represent the populations of the 20 largest cities in the U.S., sorted on rank order (New York is 1, Los Angeles is 2, Chicago is 3, etc.). Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Placing Multiple Files on a Single Disk (2) Figure 7-23. The organ-pipe distribution of files on a video server. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Placing Files on Multiple Disks (1) Figure 7-24. Four ways of organizing multimedia files over multiple disks. (a) No striping. (b) Same striping all files. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Placing Files on Multiple Disks (2) Figure 7-24. Four ways of organizing multimedia files over multiple disks. (c) Staggered striping. (d) Random striping. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Figure 7-25. (a) Two users watching the same movie 10 sec out of sync. Block Caching (1) Figure 7-25. (a) Two users watching the same movie 10 sec out of sync. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Figure 7-25. (b) Merging the two streams into one. Block Caching (2) Figure 7-25. (b) Merging the two streams into one. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Static Disk Scheduling Figure 7-26. In one round, each movie asks for one frame. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639

Dynamic Disk Scheduling Figure 7-27. The scan-EDF algorithm uses deadlines and cylinder numbers for scheduling. Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved. 0-13-6006639