3156-23 - COMS W3156: Software Engineering, Fall 2001...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
COMS W3156: Software Engineering, Fall 2001 Lecture #23: OS, design patterns Janak J Parekh [email protected]
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Administrativia Oops Handling of GameMap in GameEvent is slightly wrong We’ll release a fix today Feedback? Returning HW’s Grr, our TA’s… Reminder: Research Fair tomorrow http://acm.cs.columbia.edu/research
Background image of page 2
Next class Mythical Man-Month review Final exam review By the way, think of it as a “final midterm”… Let’s go through the reading list right now
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Today’s class Some miscellaneous C points Finish discussion on operating systems Introduction to design patterns
Background image of page 4
On gets() Yes, Phil’s right: you shouldn’t use gets fgets(string, strlen(string), stdin); But for the scope of this homework, it’s not like we’re writing code that would be subject to security vulnerabilities Tho Phil will still argue with me about it
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Streams in C FILEs (actually FILE *) Open with fopen(), close with fclose() Have fread() and fwrite() Plus fprintf() and fscanf() And ftell()/fseek() for random access Are buffered Have pushback
Background image of page 6
Strings in C #include <string.h> char *strcat(char *dest, const char *src); char *strcpy(char *dest, const char *src); size_t strlen(const char *s); int strcmp(const char *s1, const char *s2); Should really use “n” variants (strncat, strncpy, etc.) if doing network programming
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
UNIX Core concept: everything is a file Devices are “special files”, stored in /dev UNIX devices are character or block oriented tty vs. disk, for example mice, audio? mknod command
Background image of page 8
Speaking of files… Filesystems are often considered a core functionality of the OS However, it’s usually separately modularized: convenience abstraction layer Two common models: Rooted (UNIX and cousins): mount points Non-rooted (DOS, Windows) Links…
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Special filesystems “Virtual” filesystems /proc In Linux and Solaris
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/09/2010 for the course COMS W3156 taught by Professor Janakjparekh during the Fall '01 term at Columbia.

Page1 / 30

3156-23 - COMS W3156: Software Engineering, Fall 2001...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online