170 likes | 310 Views
Introduction and Overview. Fall 2010 COMP 2130 Introduction to Computer Systems Computing Science Thompson Rivers University. Instructor: Dr. Mahnhoon Lee @ OM2841 Office hour: 12:00-13:20 @ Mon, Wed, Thur and Fri E-mail: mlee@tru.ca
E N D
Introduction and Overview Fall 2010 COMP 2130 Introduction to Computer Systems Computing Science Thompson Rivers University
Instructor: Dr. Mahnhoon Lee @ OM2841 • Office hour: 12:00-13:20 @ Mon, Wed, Thur and Fri • E-mail: mlee@tru.ca • Course web page: http://cs.tru.ca/~mlee/comp2130/ • Prerequisites: • COMP 1230 with minimum ‘C’ and • COMP 1380 with minimum ‘C’ • Prerequisite for COMP 3270 Computer Networks Introduction
Rise of Questions • What is a computer system? • What is an operating system? • Which [programming] language is most powerful? • What are the benefits to take this course? Introduction
Course Contents • Two parts • C programming language • Bit operations • Use of pointers • Use of struct data structure • Use of type conversion • ... • Introduction to computer systems – How does a computer work? • Von Neumann’s architecture • Do we really understand what a computer is? • Relation with operating systems, such as Windows 7 and Ubuntu Linux • ... • Use of Linux Introduction
Lecture • C programming language first, and • Introduction to computer systems Introduction
Seminar / Lab • Use of Linux • C programming exercises • Exercise questions about computer systems • Explanation of assignments Introduction
Text Book • No textbook for C programming language • Stallings, William, Computer Organization and Architecture: Designing for Performance, 8/E, Addison-Wesley/Pearson Education, 2006 (ISBN-10: 0136073735, ISBN-13: 9780136073734) Introduction
Evaluation • Projects and assignments 20% • Midterm test 30% • Final test 50% Introduction
Questions? • Anything that you want to know more? • Any comment? • Any question? Introduction
Announcements from the Dept • COMP 2210 Visual Program Design: Winter 2011 • A required course for the BCS program • COMP 2680 will become a prerequisite for COMP 3540 Web Site Design and Programming • New COMP 2680 will be offered in • Winter 2011 • Fall 2011 new session • Winter 2012 • Fall 2012 new session • Winter 2013, ... • New COMP 3540 will be offered in • Fall 2011 -> Winter 2012 • Fall 2012, ... Introduction
Overview – Why C? • Why C? • Most system programs are written in C, not even C++, for fast execution. • The kernels of most operating systems are written in C. • Pros and cons • Fast execution -\ • Easy to handle memory - > Good for system programming • Bit operation -/ • Complex concepts of pointer, type conversion and memory allocation • How is C different from Java? Overview
Overview – Why C? • How is C different from Java? Overview
Overview – How a Computer Works • How does a computer look like? • Model from the view of functions: Von Neumann architecture • What happens when you turn on a computer? • Can a computer understand a program written in C? • How does a program run in a computer? Similar to Overview
Overview – How a Computer Works • What happens when you turn on a computer? • Power on • -> Electric signal • -> CPU • BIOS • MBR • OS Overview
Overview – How a Computer Works • Can a computer understand a program written in C or Java? • How does a program run in a computer? • A program is a collection of data and codes. • Compile and link • Load and execute • Multi-programming? Overview
Overview – How a Computer Works • What hardware components do we need to run programs in a computer? • CPU • Keyboard • Mouse • Monitor • Main memory • Hard disk • ... Overview
Overview – How a Computer Works • User programs write data into the main memory and read data from the main memory. It is very important to protect OS codes and data stored in the main memory from user programs. • What does this mean? • Why very important? • How to protect? • By using interrupts • The architectures of computer systems have very close relations with OSes and programs. • We will study • CPU, main memory, interrupts, instructions, and ... Overview