DOC PREVIEW
Princeton COS 116 - How to streamline your life (lessons from computer

This preview shows page 1-2-20-21 out of 21 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 21 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 21 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 21 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 21 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 21 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

How to streamline your life (lessons from computer architecture).PowerPoint PresentationThe Tired Librarian80-20 “Rule”Better ArrangementEven better arrangement?Slide 7How to predict the 20% most popular books for next day?New and improvedConnection to Computer OrganizationLibrarian arrangementMoralQuestionGoodbye Lenin "The German Democratic Republic lives on – in 79 m²!" (Die DDR lebt weiter – auf 79 qm!)Virtual MemoryLesson 2: MultitaskingAn Evening’s Tasks for a Gen-M’erScheduler’s objectivesTasks done by my PC last nightSlide 20Slide 21How to streamline your life (lessons from computer architecture).COS 1164/1/2008Instructor: Sanjeev AroraLesson 1: Caching(and the 80-20 rule)The Tired Librarian1000 checkouts/returns per dayDistance covered = 50 x 2 x 1000 = 100,000 feet ~ 20 milesPlease help!!!Reserves50 ft80-20 “Rule”Pareto [1906]: 20% of the people own 80% of the wealthJuran [1930’s]: 20% of the organization does 80% of the workBetter ArrangementDistance covered per day?Reserves“Most popular” shelf: 20% most popular books5 ft50 ftEven better arrangement?Distance covered per day?Reserves“Most popular” shelf: 20% most popular books5 ft50 ftTop 4%Is the librarian’s problem solved?Discussion TimeHow to predict the 20% most popular books for next day?In general, no easy solutionIn practice, use rules of thumbExample: “Least Recently Used”. When you need to create space on the desk (or shelf), move out the book that was used least recentlyMany others (LRU is computationally expensive)New and improvedConnection to Computer OrganizationSpeed vs cost of various memoriesCost: $ / GB Speed: GB/sHard drive 0.50 1RAM100 5On-chip memory for CPU (L2 Cache)40000 15Librarian arrangementReserves“Most popular” shelf: 20% most popular booksDiskMemoryCacheTop 4%CPUComputerOften, today’s computers have even more levels of cachingMoralPerformance:Speed is close to that of fastest memory (cache)Overall capacity is that of largest memory (disk)QuestionHow does the same program (.exe file) run on different PCs with different memory configurations?Answer: “Virtual Memory”All programs live a fiction: allowed to pretend it has 264 bytes of memoryIllusion is preserved by hardwareGoodbye Lenin"The German Democratic Republic lives on – in 79 m²!" (Die DDR lebt weiter – auf 79 qm!)Program’s view:Underlying truth:Virtual MemoryPowerpointMemory:Address 0 Address 264 - 1Lec15.ppt P ≠ NP.pptLesson 2:Multitasking“The Multitasking Generation”An Evening’s Tasks for a Gen-M’erHomeworkListen to musicInstant MessagingCall Mom (goes to bed by 11 PM!)Answer phoneRead a bit more of Joyce’s UlyssesWatch the Daily ShowHow do you do it all?Scheduler’s objectivesFairnessTimelinessCritical tasks processed promptlyLow overhead How can one achieve these (often conflicting) goals?Discussion TimeTasks done by my PC last nightWord processingPlay CDDownload news updatesDownload emailRun clockHidden tasks: handle network traffic, manage disk and RAM traffic, scheduler, etc.Managed by “Operating System”(WinXP, Linux, MacOS, etc.)Multitasking versus Parallel ProcessingMultitasking: A single CPU handles manytasks by switching rapidly among them. (e.g., all Wintel machines since early 1990s;all Unix machines since the 1970s)Parallel Processing: Multiple CPUs that do thework of a single CPU. (But, 4 CPUs do notnecessarily mean 4x speed.)One main point studied by the judge: What is an OS?The Legal


View Full Document

Princeton COS 116 - How to streamline your life (lessons from computer

Documents in this Course
Lecture 5

Lecture 5

15 pages

lecture 7

lecture 7

22 pages

Lecture

Lecture

32 pages

Lecture

Lecture

16 pages

Midterm

Midterm

2 pages

Lecture

Lecture

23 pages

Lecture

Lecture

21 pages

Lecture

Lecture

24 pages

Lecture

Lecture

22 pages

Lecture

Lecture

28 pages

Lecture

Lecture

21 pages

Lecture

Lecture

50 pages

Lecture

Lecture

19 pages

Lecture

Lecture

28 pages

Lecture

Lecture

32 pages

Lecture

Lecture

23 pages

Lecture

Lecture

21 pages

Lecture

Lecture

19 pages

Lecture

Lecture

22 pages

Lecture

Lecture

21 pages

Logic

Logic

20 pages

Lab 7

Lab 7

9 pages

Lecture

Lecture

25 pages

Lecture 2

Lecture 2

25 pages

lecture 8

lecture 8

19 pages

Midterm

Midterm

5 pages

Lecture

Lecture

26 pages

Lecture

Lecture

29 pages

Lecture

Lecture

40 pages

Lecture 3

Lecture 3

37 pages

lecture 3

lecture 3

23 pages

lecture 3

lecture 3

20 pages

Lecture

Lecture

21 pages

Lecture

Lecture

24 pages

Lecture

Lecture

19 pages

Load more
Download How to streamline your life (lessons from computer
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view How to streamline your life (lessons from computer and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view How to streamline your life (lessons from computer 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?