Signals - PowerPoint PPT Presentation

About This Presentation
Title:

Signals

Description:

CS 241 Section (04/05/12) Outline MP7 Banker's Algorithm MP7 What is MapReduce? Framework for Data Intensive Jobs MapReduce We give you map() input map() map() reduce ... – PowerPoint PPT presentation

Number of Views:46
Avg rating:3.0/5.0
Slides: 16
Provided by: Alej202
Category:
Tags: signals

less

Transcript and Presenter's Notes

Title: Signals


1
CS 241 Section(04/05/12)
2
Outline
  • MP7
  • Banker's Algorithm

3
MP7
  • What is MapReduce?
  • Framework for Data Intensive Jobs

4
MapReduce
5
We give you
input
reduce()
map()
map()
map()
6
You need to
Fork()
Pipe() and Select()
7
Pipes
  • Ps aux grep bash

8
Chat Room with Fifo!Everyone ssh
linux1.ews.illinois.edu
  • Student
  • cat /tmp/chat
  • tail -f /tmp/chat
  • TA
  • mkfifo /tmp/chat
  • echo a gt/tmp/chat

9
Banker's Algorithm
10
Current Allocation
Pr Alloc Alloc Alloc Max Max Max Need Need Need Total Total Total
A B C A B C A B C A B C
P0 1 2 0 7 5 3 6 3 3 12 6 6
P1 2 2 4 3 2 5 1 0 1 Available Available Available
P2 3 1 0 10 1 2 7 0 2 A B C
P3 2 1 1 2 2 2 0 1 1 4 0 1
P4 0 0 0 4 3 3 4 3 3
Can P2 request (A3 B0 C0) ?
11
Current Allocation
Pr Alloc Alloc Alloc Max Max Max Need Need Need Total Total Total
A B C A B C A B C A B C
P0 1 2 0 7 5 3 6 3 3 12 6 6
P1 2 2 4 3 2 5 1 0 1 Available Available Available
P2 3 1 0 10 1 2 7 0 2 A B C
P3 2 1 1 2 2 2 0 1 1 1 0 1
P4 0 0 0 4 3 3 4 3 3
Can P2 request (A3 B0 C0) ?
12
Current Allocation
Pr Alloc Alloc Alloc Max Max Max Need Need Need Total Total Total
A B C A B C A B C A B C
P0 1 2 0 7 5 3 6 3 3 12 6 6
P1 2 2 4 3 2 5 1 0 1 Available Available Available
P2 3 1 0 10 1 2 7 0 2 A B C
P3 2 1 1 2 2 2 0 1 1 3 2 5
P4 0 0 0 4 3 3 4 3 3
Can P2 request (A3 B0 C0) ?
13
Current Allocation
Pr Alloc Alloc Alloc Max Max Max Need Need Need Total Total Total
A B C A B C A B C A B C
P0 1 2 0 7 5 3 6 3 3 12 6 6
P1 2 2 4 3 2 5 1 0 1 Available Available Available
P2 3 1 0 10 1 2 7 0 2 A B C
P3 2 1 1 2 2 2 0 1 1 5 3 6
P4 0 0 0 4 3 3 4 3 3
Can P2 request (A3 B0 C0) ?
14
Current Allocation
Pr Alloc Alloc Alloc Max Max Max Need Need Need Total Total Total
A B C A B C A B C A B C
P0 1 2 0 7 5 3 6 3 3 12 6 6
P1 2 2 4 3 2 5 1 0 1 Available Available Available
P2 3 1 0 10 1 2 7 0 2 A B C
P3 2 1 1 2 2 2 0 1 1 5 3 6
P4 0 0 0 4 3 3 4 3 3
Can P2 request (A3 B0 C0) ?
15
Current Allocation
Pr Alloc Alloc Alloc Max Max Max Need Need Need Total Total Total
A B C A B C A B C A B C
P0 1 2 0 7 5 3 6 3 3 12 6 6
P1 2 2 4 3 2 5 1 0 1 Available Available Available
P2 3 1 0 10 1 2 7 0 2 A B C
P3 2 1 1 2 2 2 0 1 1 5 3 6
P4 0 0 0 4 3 3 4 3 3
Can P2 request (A3 B0 C0) ? No?
16
Current Allocation
Pr Alloc Alloc Alloc Max Max Max Need Need Need Total Total Total
A B C A B C A B C A B C
P0 1 2 0 7 5 3 6 3 3 12 6 6
P1 2 2 4 3 2 5 1 0 1 Available Available Available
P2 3 1 0 10 1 2 7 0 2 A B C
P3 2 1 1 2 2 2 0 1 1 5 3 6
P4 0 0 0 4 3 3 4 3 3
Can P2 request (A3 B0 C0) ? No? Remember to
subtract initial request from Need
Write a Comment
User Comments (0)
About PowerShow.com