Upload
others
View
1
Download
0
Embed Size (px)
Citation preview
CSE306:Opera.ngSystems
Introduc.on
DonPorter
1
CSE306:Opera.ngSystems
Paperwork• Iamhandingoutasurveyonyourbackgroundandminiquiz
• Pleasecompleteandreturnbeforeyouleave.
• AcademichonestyhomeworkdueThurs2/11inclass
CSE306:Opera.ngSystems
WhatisanOS?• Allofthestuffbetweenyou/yourapplicaHonandthehardware– Kernel– DeviceDrivers– APIlibraries– UI
• Ourfocusismostlyonthekernel,withsomeaLenHontotheothers
CSE306:Opera.ngSystems
WhyOperaHngSystems?• PrimaryGoal:DemysHfyhowcomputerswork– LotsofabstracHonsandheurisHcsbetweenyourapplicaHonandthehardware
– AgoodcomputerscienHstshouldunderstandwhathappensinsidethesystemwhenonetypesacommand
• Secondary:Learnhowtowriterobustprograms– OSeslikeLinuxhavemanyusersandworkonawiderangeofhardware
– Dealwithsubtleissues:concurrency,consistency,etc.
CSE306:Opera.ngSystems
Labs:Learnbydoing• Thiscourseiscodingintensive– YoushouldknowC,orbepreparedtoremediatequickly– Youwilllearnbasic,inlinex86assembly– Youmustlearnonyourown/withlabpartner
• YouwillwritemakesubstanHalmodificaHonstoxv6,asimplex86Unixvariant– CodeiswriLentobeeasytounderstand,butlacksmanymodernOSfeatures
– Challengingwork,butaverymarketableskill
CSE306:Opera.ngSystems
LabTeams• Canworkalone,butbeLerwithhelp– Noneedtobeahero
• Chooseyourownpartners– Piazzaalistgoodforfindingthem
• SameforenHrecourse– Changesonlywithinstructorpermission
CSE306:Opera.ngSystems
ChallengeProblems• Eachlabmayincludechallengeproblems,whichyoumaycompleteforbonuspoints(generally5—10pointsoutof100)– Unwisetoturninalablatetodochallengeproblems– Cancompletechallengeproblemsatanypointinthesemester---evenonoldlabs
• Indicateanychallengeproblemscompletedinchallenge.txtfile
CSE306:Opera.ngSystems
AdministraHve• Syllabus,schedule,homework,etc.postedoncoursewebsite
• www.cs.stonybrook.edu/~porter/courses/cse306/s16
CSE306:Opera.ngSystems
RequiredReadings• Primarilyfromtheclasstextbook• Shouldbecompletedbeforethelecture• Requiredreadingmaterialmayappearontheexams,evenifnotdiscussedinlecture
• Severalrecommended(opHonal)textswillbeposted– SeveralfreeonSBUsafarionlinesite– Papersyoucanprintoutorreadelectronically– Othersonreserveatlibrary
CSE306:Opera.ngSystems
Lectures• Discussandsupplementreadingmaterial• Animportantchancetoclarifyissues– QuesHonsareencouraged!
• IexpectyoutoarrivepreparedtoanswerandaskquesHonsaboutthereadingmaterial
• Everythinginlecturesmayappearontheexams,evenifnotinthebook
CSE306:Opera.ngSystems
Recordings• Iusuallyrecordlecturesforstudentstoreviewlater– NB:Thisispendinghelpfromthetechstaff.ThisroomisnotequippedwithSBcapture.
• Assumingthisworksout,recordingsarebesteffort– Recordingsmayfail,orgetdeletedbyaccident– OrbedisconHnuediftoomanystudentsstopaLending
• IneedyourfacialexpressionsandquesHonstoknowiflecturesmakesense
• DonotusethisasasubsHtuteforclassaLendance
11
CSE306:Opera.ngSystems
GuestLectures• Seniorgraduatestudentswillgivesomelecturestogainteachingexperience– Includingtoday!
• ProfessorPorterwillreviewandcriHqueguestlectures(inpersonorrecorded)withguests
• Please:– AskquesHonsifsomethingisunclear:inclassoronpiazza– GiveProf.Portercommentsonguests(andhislectures)---posiHveandnegaHve
12
CSE306:Opera.ngSystems
Prerequisites• CSE219(CSIII)orCSE260(CSB,Honors)• CSE220(Systems-levelProgramming)orESE380(EmbeddedMicroprocessorDesignI)
• Thebackgroundcoursesarenecessary– Istronglyencouragestudentstotake(new)CSE320first
• Insomecases,industryexperienceisok– In-classquiz,duebeforeyouleave
• Ifyoucan’tanswer50%ofthesequesHonsyouarenotprepared
• Cprogramming• BasicUnixcommand-lineproficiency
CSE306:Opera.ngSystems
CProgramming• YoushouldhavelearnedCintheprerequisitecourses
• Ifyouhavenotandwanttotakethecourse,youshouldread“TheCProgrammingLanguage”byKernighanandRitchiecovertocoverthisweek– Andcompleteallexercisesinthebook
• Ifyoucandothis,youwillbepreparedtocompletethiscourseonschedule
CSE306:Opera.ngSystems
Courseemaillist• WewillusePiazzathissemester.Linkoncoursewebsite
• Thisistheprimaryannouncementmedium• Andfordiscussionsaboutcoursework– DonotpostcodehereorothersoluHons– Goal:EveryonecanlearnfromgeneralquesHons
• MaterialdiscussedonthemailinglistcanbeanexamquesHon
CSE306:Opera.ngSystems
OtheradministraHvenotes• Readsyllabuscompletely• Subscribetotheclasspiazzaforum• 2examscover:lectures,labs,mailinglist• EverystudentwillgetaVMforlabwork– Youmayuseyourowncomputer,staffcan’tsupportit
• [email protected]– Exceptprivateissuesforinstructoronly
CSE306:Opera.ngSystems
SpecialOffer!• YoucanwriteyourownexamquesHons– Sendthemtomeinadvanceofthetest,ifIlikethem,Iwillusethem
– DoNOTsharewithanyoneelse
CSE306:Opera.ngSystems
AcademicIntegrity• ItakecheaHngveryseriously.Itcanendyourcareer.• Inagrayarea,itisyourjobtostayonrightsideofline
• Nevershowyourcodetoanyoneexceptyourpartnerandcoursestaff
• Neverlookatanyoneelse’scode(incl.otheruniversiHes)
• Donotdiscusscode;donotdebugeachother’scode• Acknowledgestudentsthatgiveyougoodideas
CSE306:Opera.ngSystems
Whydowecare?• Analogy:Thisistheprogrammingdojo– Ifyoudon’tdoyourexercises,youwillbeunpreparedforbaLle
– You’vewastedyourmoneyandbothofourHme– ItbringsdishonoronthedojowhenyouloseeverybaLle
• Similarly,alotofwhatIhavetoteach(andwhatwillmakeyouavaluableemployeewhenyougraduate)hasnoshortcut– Howdoyoulearntopunchthroughaboard?– YoupunchaboardoverandoverunHlyourfistgoesthroughit
CSE306:Opera.ngSystems
ProducHveFrustraHon• Oneofthe“metaskills”thatdisHnguishesanexcellentprogrammeristheabilitytogetun-stuck– Fixinga“heisenbug”hasthisproperty
• Howdoyoulearnthisskill?– Getstuckonahard,butsolvableproblem– Learnwhichstrategieswillgetyoumovingagain
• Ifyoutakeaquickcheat,youwon’tlearntheskillstosolvetrulyhardproblems
CSE306:Opera.ngSystems
IntegrityHomework• ExercisesapplyingcoursepoliciesandethicstoseveralsituaHons
• Dueinclass2/11
21
CSE306:Opera.ngSystems
Lateness• Eachstudentgets72latehours– Listhowmanyyouuseinslack.txt– EachdayaqerthesearegonecostsafullleLergradeontheassignment
– Ifyouworkinateam,eachmemberloses1hourforeachhourlate
• Itisyourresponsibilitytousethesetomanage:– Holidays,weddings,researchdeadlines,conferencetravel,Buffymarathons,releaseofthenextZeldagame,etc.
• 3ExcepHons:illness(needdoctor’snote),deathinimmediatefamily,accommodaHonfordisability
CSE306:Opera.ngSystems
Gesnghelp• TA’swillkeepofficehours(TBD)• Instructorkeepsofficehours– Notethat“byappointment”meansmoreHmeavailableondemand
CSE306:Opera.ngSystems
QuesHons?• Remember:– Hand-insurvey– Doacademichonestyhomework– Lab1comingoutsoon– ReadingassignedforThursday