Docsity

Notes on Presentations, Synchronization and Locking | CS 351L, Study notes of Computer Science

Partial preview of the text

Download Notes on Presentations, Synchronization and Locking | CS 351L and more Study notes Computer Science in PDF only on Docsity!

In Sync

(No, not the lame boy band.)

Today in history...

Last time:

Thinking about design: interface design

Survey of code complexity: P1 vs. P

Intro to the thread model: procs vs. threads

This time:

Team tips

Notes on presentations

Synchronization & locking

Civics!

Nov 7 (next Tues)==election day

Vote!

Pseudo-code:

NMGovt.registerToVote(this);

this.educate(webPtr,newsPaperPtr);

Location l=findPollingPlace(this);

// on Nov 7:

PollingPlace p=this.relocate(l);

p.castVotes(new HashMap<Candidate,Vote>

Possibly useful resources...

League of Women Voters info pages: http://

www.lwvnm.org/

ABQ Journal: http://www.abqjournal.com/

ABQ Tribune: http://www.abqtrib.com/

Google news: http://news.google.com/

Party pages (link to candidates & platforms):

• http://www.nmdemocrats.org/

• http://www.gopnm.org/

• http://www.greenpartynm.org/

And, of course, your local library...

Administrivia

P3M1 coming up...

Whole group should meet w/ me and Blake in

person

You MUST arrange a time with me

Allow 1 hour

>= 1/2 hour on “formal presentation”; the rest

for Q&A

Team tip: code ownership

Who “owns” a module? Who is responsible for it?

Model 1: Strong individual ownership

One person is exclusive owner of each module

Knows it inside out

Can easily fix bugs, etc.

Clear-cut lines of responsibility

Each developer has limited responsibility

x

All changes have to pass through one person

x

Can be a serious bottleneck

About presentations...

Goal of presentation: convey information clearly and

concisely

#1 most important thing: lay out your presentation

ahead of time

#2 most important: practice!

Presentation hints

Formal presentation to an audience

Avoid slang, informalism, etc.

(Jokes ok, but don’t lose focus)

Trying to convince audience of something

E.g., you have a brilliant design that will address all

issues flawlessly...

Subtext: you’re smart and they should invest in

you/your project

Presentation hints

Practice!

Time will be tight -- time yourself

Get friends/colleagues to help you practice

Practice!

Think about order of material presentation

Practice!

Presentation hints

Avoid

using

every

clever

powerpoint

trick^ A

n

d b

e c

a

re

fu

l w

it

h

cu

te

, b

ut p

o

in

tl

es

s

im

ag

e

s

Presentation hints

Oh yeah.

Don’t switch slides too quickly.

Presentation hints

Be sure to look at audience

Don’t just read from your slides

Don’t stare at screen whole time

Be careful w/ laser pointers

Practice!

Synchronization

Definition: critical section

Segment of code that should not be invoked by

>1 thread at a time

Synchronization

Definition: Mutual exclusion

Only 1 thread can be executing block (critical

section) at a time