Professional Documents
Culture Documents
ch20 Multimedia Systems
ch20 Multimedia Systems
Systems
What is Multimedia?
Compression
Requirements of Multimedia Kernels
CPU Scheduling
Disk Scheduling
Network Management
An Example: Cineblitz
Operating System Concepts – 8th Edition 20.2 Silberschatz, Galvin and Gagne
Objectives
To identify the characteristics of multimedia data
To examine several algorithms used to compress
multimedia data
To explore the operating system requirements of
multimedia data, including CPU and disk scheduling
and network management
Operating System Concepts – 8th Edition 20.3 Silberschatz, Galvin and Gagne
What is Multimedia?
Multimedia data includes
- audio and video clips (i.e. MP3 and MPEG files)
- live webcasts
- desktop PC’s
- handheld devices (PDAs, smart phones
Operating System Concepts – 8th Edition 20.4 Silberschatz, Galvin and Gagne
Media Delivery
Multimedia data is stored in the file system like other
ordinary data
However, multimedia data must be accessed with specific
timing requirements
For example, video must be displayed at 24-30 frames per
second. Multimedia video data must be delivered at a rate
which guarantees 24-30 frames/second
Continuous-media data is data with specific rate
requirements
Operating System Concepts – 8th Edition 20.5 Silberschatz, Galvin and Gagne
Streaming
Streaming is delivering a multimedia file from a server to a
client - typically the deliver occurs over a network
connection
There are two different types of streaming:
1. Progressive download - the client begins playback of the
multimedia file as it is delivered. The file is ultimately stored
on the client computer
Operating System Concepts – 8th Edition 20.6 Silberschatz, Galvin and Gagne
Real-time Streaming
There are two types of real-time streaming:
Operating System Concepts – 8th Edition 20.7 Silberschatz, Galvin and Gagne
Multimedia Systems Characteristics
Operating System Concepts – 8th Edition 20.8 Silberschatz, Galvin and Gagne
Compression
Because of the size and rate requirements of multimedia
systems, multimedia files are often compressed into a
smaller form
MPEG Compression:
(1) MPEG-1 - 352 X 240 @ 30 frames/second
Operating System Concepts – 8th Edition 20.9 Silberschatz, Galvin and Gagne
Operating Systems Issues
The operating system must guarantee the specific data
rate and timing requirements of continuous media
Operating System Concepts – 8th Edition 20.10 Silberschatz, Galvin and Gagne
QoS Guarantees
Guaranteeing QoS has the following effects in a computer
system:
(2) Scheduling
Operating System Concepts – 8th Edition 20.11 Silberschatz, Galvin and Gagne
Requirement of Multimedia Operating Systems
Operating System Concepts – 8th Edition 20.12 Silberschatz, Galvin and Gagne
Parameters Defining QoS
Throughput - the total amount of work completed during a
specific time interval
Operating System Concepts – 8th Edition 20.13 Silberschatz, Galvin and Gagne
Further QoS Issues
QoS may be negotiated between the client and server
Operating systems often use an admission control algorithm
that admits a request for a service only if the server has
sufficient resources to satisfy the request.
Operating System Concepts – 8th Edition 20.14 Silberschatz, Galvin and Gagne
Resources on a file server
Operating System Concepts – 8th Edition 20.15 Silberschatz, Galvin and Gagne
CPU Scheduling
Operating System Concepts – 8th Edition 20.16 Silberschatz, Galvin and Gagne
Disk Scheduling
Disk scheduling algorithms must be optimized to meet the
timing deadlines and rate requirements of continuous media
SCAN-EDF Scheduling
Operating System Concepts – 8th Edition 20.17 Silberschatz, Galvin and Gagne
Disk Scheduling (Cont)
The EDF scheduler uses a queue to order requests
according to the time it must be completed (its deadline)
Operating System Concepts – 8th Edition 20.18 Silberschatz, Galvin and Gagne
Deadline and cylinder requests for SCAN-EDF scheduling
Operating System Concepts – 8th Edition 20.19 Silberschatz, Galvin and Gagne
Network Management
Three general methods for delivering content from a server
to a client across a network:
Operating System Concepts – 8th Edition 20.20 Silberschatz, Galvin and Gagne
RealTime Streaming Protocol (RTSP)
Operating System Concepts – 8th Edition 20.21 Silberschatz, Galvin and Gagne
Streaming media from a conventional web server
Operating System Concepts – 8th Edition 20.22 Silberschatz, Galvin and Gagne
Realtime Streaming Protocol
Operating System Concepts – 8th Edition 20.23 Silberschatz, Galvin and Gagne
RTSP States
SETUP - the server allocates resources for a client
session
Operating System Concepts – 8th Edition 20.24 Silberschatz, Galvin and Gagne
RTSP state machine
Operating System Concepts – 8th Edition 20.25 Silberschatz, Galvin and Gagne
CineBlitz Multimedia Server
CineBlitz supports both realtime and non-realtime clients
Operating System Concepts – 8th Edition 20.26 Silberschatz, Galvin and Gagne
CineBlitz Admission Controller
Total buffer space required for N clients where client
has rate requirement of ri
Operating System Concepts – 8th Edition 20.27 Silberschatz, Galvin and Gagne
Double buffering in CineBlitz
Operating System Concepts – 8th Edition 20.28 Silberschatz, Galvin and Gagne
CineBlitz Admission Controller (Cont)
If tseek and trot are the worst-case seek and rotational
delay times, the maximum latency for servicing N requests is
Operating System Concepts – 8th Edition 20.29 Silberschatz, Galvin and Gagne
CineBlitz Admission Controller (cont)
The CineBlitz admission controller only admits a new client if
there is at least 2 X T X ri bits of free buffer space and the
following equation is satisfied
Operating System Concepts – 8th Edition 20.30 Silberschatz, Galvin and Gagne
End of Chapter 20
Operating System Concepts – 8th Edition 20.33 Silberschatz, Galvin and Gagne