Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Lecture CS (2/17/2010)

361 views

Published on

  • Be the first to comment

  • Be the first to like this

Lecture CS (2/17/2010)

  1. 1. General Computer Science for Engineers CISC 106-011 Lecture 03 Chien-Chung Shen Computer and Information Sciences 2/17/2010
  2. 2. Objectives <ul><li>Introduction to “operating system” and UNIX </li></ul><ul><li>Introduction to “programming language” </li></ul>
  3. 3. Operating System (OS) <ul><li>A piece of software that manages all the resources of a computer </li></ul><ul><li>Resources </li></ul><ul><ul><li>Processor(s) - processes </li></ul></ul><ul><ul><li>Memory </li></ul></ul><ul><ul><li>File and Storage (disk) </li></ul></ul><ul><li>A cellphone (and iPod Touch) is a computer (without disk) so it also runs a version of OS (iPhone OS [derived from Mac OS X], Android [derived from Linux], etc.) </li></ul>
  4. 4. Process in UNIX <ul><li>Executing a program creates a process </li></ul><ul><li>We use a very simple C program to illustrate! </li></ul><ul><li>Process ID (pid) </li></ul><ul><li>Checking processes (ps -ef) </li></ul><ul><li>Killing a process (kill <pid>) </li></ul>
  5. 5. UNIX Shell <ul><li>A “interactive” program running as a process </li></ul><ul><li>Many different shells: sh, tcsh, ksh, etc. </li></ul><ul><li>A “command interpreter” doing what is told </li></ul><ul><li>Shell commands </li></ul>
  6. 6. File and Directory <ul><li>A named unit residing on some permanent storage (disk or flash drive) that contains information, program/source code, data, executable code, etc. </li></ul><ul><li>Directory (or folder) is a file that contains other files (a recursive definition) </li></ul><ul><li>Visualize a directory as a “tree” rooted at “/” </li></ul><ul><li>Commands: ls , mkdir , cd , pwd , rm , mv , cp , rmdir , cat , more , less , etc. </li></ul>
  7. 7. Window vs. Microsoft Windows OS <ul><li>Microsoft Windows (XP, etc.) is an OS </li></ul><ul><li>Windowing systems: X-Window, Cygwin </li></ul><ul><ul><li>“ virtual” terminal </li></ul></ul>
  8. 8. Programming language <ul><li>Syntax: grammar </li></ul><ul><ul><li>Interpretation/compilation errors </li></ul></ul><ul><li>Semantics: meaning </li></ul><ul><ul><li>Logical errors </li></ul></ul>

×