Filter By
Filter Reset
Semester
CA (160,788)
McGill (4,875)
COMP (32)

Textbook Notes for Computer Science (Sci) at McGill University

COMP 310 Chapter Monitor: Monitor Notes

Comp 310ECSE 427: Monitors Based on the Operating System Concepts book by Silberschatz et Al. Joud Chataoui Introduction: A monitor is a highlevel module that provides mutual exclusion and synchronization abilities to a us...

Computer Science (Sci)
COMP 310
Rola Harmouche
COMP 206 Chapter Notes - Chapter 3.8: Negation, Logical Disjunction, Logical Connective
Premium

Chapter 3.8 Syntax details for example 4: o Decision Control Statements Decision control statements use conditions to determine when the decision control is true or not Conditions are also known as logical expressions o Lo...

Computer Science (Sci)
COMP 206
David P.Meger
COMP 206 Chapter Notes - Chapter 3.3: Semicolon, Reserved Word
Premium

Chapter 3.3 ____________________________________________________________________ 1. Identifiers, literals, types, variables, and constants o Identifiers: A usersupplied name used to identify a portion of a program that doe...

Computer Science (Sci)
COMP 206
David P.Meger
COMP 206 Chapter Notes - Chapter 2.5: Javac, Telnet, Rlogin
Premium

Chapter 2.5 CHMOD (File Security Privileges): o Unix command used to assign security levels and access rights o chmod SWITCH FILENAME o Where SWITCH specifies the security level and access right for a file or directory FIL...

Computer Science (Sci)
COMP 206
David P.Meger
COMP 206 Chapter Notes - Chapter 2.1: Temporary File, Auxiliary Memory, List Of Utility Software
Premium

COMP 206 Notes Chapter 2.1 Unix Operating System: Kernel is the core operating system module o It resides in the computers RAM (Random Access Memory) o Its role is to manage how memory is organized, how a process executes,...

Computer Science (Sci)
COMP 206
David P.Meger
COMP 206 Chapter Notes - Chapter 3.1: Text Editor, A.Out, Entry Point
Premium

Chapter 3.1 Compiling under Unix o Write your C program in any text editor (Notepad, or Vi) then save it with the file extension .c o Next step is to compile the .c file This can be done using the GNU tool set in this text...

Computer Science (Sci)
COMP 206
David P.Meger
COMP 206 Chapter 3.11: 3.11
Premium

Chapter 3.11 o Syntax: Where: INIT_LIST is a commaseparated list of initialization statements COND is any legal logical expression INC_LIST is a commaseparated list of mathematical expressions STATEMENT is a zero or one le...

Computer Science (Sci)
COMP 206
David P.Meger
COMP 206 Chapter Notes - Chapter 2.7: Regular Expression, Gzip, Carriage Return
Premium

Chapter 2.7 Regular expressions: 1. f line contains a form feed 2. n line contains a carriage return 3. t line contains a tab 4. w line contains one of these: a to z, A to Z, 0 to 9 5. W line contains one of these: the opp...

Computer Science (Sci)
COMP 206
David P.Meger
COMP 206 Chapter Notes - Chapter 3.13: String Literal, Null Character, C String Handling
Premium

Chapter 3.13 o Three ways to declare a string in C As an array As a pointerblock combination As a literal o To define a string as an array, we declare a regular character array Example: char array [20] This is a normal cha...

Computer Science (Sci)
COMP 206
David P.Meger
COMP 206 Chapter Notes - Chapter 3.6: Text Mode, Working Directory, Readwrite
Premium

Chapter 3.6 The library stdio.h: Reading from and Writing to Files: o To access files from either reading or writing, C requires a special filepointer type called FILE A pointer of this type ca reference any file on the di...

Computer Science (Sci)
COMP 206
David P.Meger
COMP 206 Chapter 2.8: 2.8
Premium

Chapter 2.8 Example Unix Session: Session 1 1. Welcome to Ubuntu 2. set prompt =[m] [~] The user uses the set command to change the prompt to display the server name, m, and current directory, ~ 3. [mimi] [~jjsmith] clear...

Computer Science (Sci)
COMP 206
David P.Meger
COMP 206 Chapter Notes - Chapter 3.7: Switch Statement, Eof
Premium

Chapter 3.7 In the example, above, two files are opened, in and out. o The pointer in is connected to the file names.txt and it is opened for reading o The pointer out is connected to the file backup.txt and it is opened f...

Computer Science (Sci)
COMP 206
David P.Meger
COMP 206 Chapter Notes - Chapter 3.2: Entry Point, Reserved Word
Premium

Chapter 3.2 ______________________________________________________________________________ Syntax details for example 1 o The main function RTYPE main (int ARGC, char *ARGV[]) { Statement(S); Return RESULT; } o Where you c...

Computer Science (Sci)
COMP 206
David P.Meger
COMP 206 Chapter Notes - Chapter 2.2: Symbolic Link, Ampersand, Binary Form
Premium

Chapter 2.2 The Unix Session and CommandLine Interface: Detailed Commandline Command Descriptions: Unix has two basic file types o Data files o Executable files Each of these files can be in either o Binary form o Text fil...

Computer Science (Sci)
COMP 206
David P.Meger
COMP 206 Chapter Notes - Chapter 3.5: Tab Key, Carriage Return, Ampersand
Premium

Chapter 3.5 1. Point 1 o C uses the same controlcodes and escapesequences for both the printf and scanf commands The percent () and the backslash () are called escape characters o Usually printf and scanf commands interpre...

Computer Science (Sci)
COMP 206
David P.Meger

Log In


OR

Don't have an account?

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit