C and Unix. Introduction to Different OS Airlines 1. Mac Airline: All the stewards, stewardesses, captains, baggage handlers, and ticket agents look the.

Slides:



Advertisements
Similar presentations
Introduction to Computers Part II
Advertisements

C language was developed in early 1970s by Dennis Ritchie at Bell Laboratories to implement the UNIX operating system on the PDP-11 manufactured by DEC.
 Prof. Dr. M. H. Assal Introduction to Computer AS 26/10/2014.
OS airlines Lähde
Introduction to UNIX Acknowledgement:Thanks to Dr Andrew Horner for the original version of this set of slides. All trademarks are the properties of their.
1 Lecture 1  Getting ready to program  Hardware Model  Software Model  Programming Languages  The C Language  Software Engineering  Programming.
CMPTR1 CHAPTER 3 COMPUTER SOFTWARE Application Software – The programs/software/apps that we run to do things like word processing, web browsing, and games.
Understanding Operating Systems 1 Overview Introduction Operating System Components Machine Hardware Types of Operating Systems Brief History of Operating.
C and Unix. A Couple Basic Concept and Terms 1. File. 2. Process. 3. Memory 4. HD.
Spring 2007Introduction to OS1 IT 3423: Operating System Concepts and Administration Instructor: Wayne (Weizheng) Zhou
1 DOS with Windows 3.1 and 3.11 Operating Environments n Designed to allow applications to have a graphical interface DOS runs in the background as the.
Introduction to UNIX Acknowledgement:Thanks to Dr Andrew Horner for the original version of this set of slides. All trademarks are the properties of their.
Basic Unix Dr Tim Cutts Team Leader Systems Support Group Infrastructure Management Team.
Introduction To C++ Programming 1.0 Basic C++ Program Structure 2.0 Program Control 3.0 Array And Structures 4.0 Function 5.0 Pointer 6.0 Secure Programming.
Systems Software Operating Systems.
 2000 Prentice Hall, Inc. All rights reserved. 1 Introduction to Computers and C Programming Outline Introduction What Is a Computer? Computer Organization.
AN INTRODUCTION TO LINUX OPERATING SYSTEM Zihui Han.
Unix Presentation. What is an Operating System An operating system (OS) is a program that allows you to interact with the computer -- all of the software.
The University of Akron Summit College Business Technology Department Computer Information Systems 2440: 145 Operating Systems Introduction to UNIX/Linux.
Operating System.
BASIC NETWORK CONCEPTS (PART 6). Network Operating Systems NNow that you have a general idea of the network topologies, cable types, and network architectures,
Lesson 4 Computer Software
Lesson 4: What Is Software?
Chapter Introduction to Computers and Programming 1.
Unix Background / History CSE 4251, Sp 2014, Bolz 422 Dr. Bob Mathis,
What is UNIX? UNIX is an Operating System (OS). An operating system is a control program that helps the user communicate with the computer hardware. UNIX.
Lesson 6 Operating Systems and Software
COMP1070/2002/lec3/H.Melikian COMP1070 Lecture #3 v Operating Systems v Describe briefly operating systems service v To describe character and graphical.
Operating systems CHAPTER 7.
Operating Systems. Operating systems  Between the hardware and the application software lies the operating system. The operating system is a program.
Systems Software & Operating systems
1 ITSK 2611 Welcome. 2 Operating System 3 What is an OS Resource Manager –Disk –Memory –CPU Device Manager –Printers –Video Card –Sound Card Utility.
Standard Grade Computing System Software & Operating Systems.
1 Computing Software. Programming Style Programs that are not documented internally, while they may do what is requested, can be difficult to understand.
CSC-115 Introduction to Computer Programming
Introduction to Programming Using C Introduction to Computer Programming.
Operating System History --- and maybe some future ?
CS 444 Introduction to Operating Systems
Introduction to Programming Lecture No. 1. Books  Deitel & Deitel :– C++ How to Program  Kernighan and Ritchie:- The C Programming Language.
CS 390 Unix Programming Summer Unix Programming - CS 3902 Course Details Online Information Please check.
INVITATION TO COMPUTER SCIENCE, JAVA VERSION, THIRD EDITION Chapter 6: An Introduction to System Software and Virtual Machines.
Systems Software Operating Systems. What is software? Software is the term that we use for all the programs and data that we use with a computer system.
Robert Crawford, MBA West Middle School.  Explain how the binary system is used by computers.  Describe how software is written and translated  Summarize.
Operating System What is an Operating System? A program that acts as an intermediary between a user of a computer and the computer hardware. An operating.
CS2204: Introduction to Unix January 19 th, 2004 Class Meeting 1 * Notes adapted by Christian Allgood from previous work by other members of the CS faculty.
An operating system is the software that makes everything in the computer work together smoothly and efficiently. What is an Operating System?
A. Frank - P. Weisberg Operating Systems Structure of Operating Systems.
Application Software System Software.
Programming Fundamentals Lecture No. 2. Course Objectives Objectives of this course are three fold 1. To appreciate the need for a programming language.
Introduction to UNIX CS 2204 Class meeting 1 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
Introduction to UNIX CS465. What is UNIX? (1) UNIX is an Operating System (OS). An operating system is a control program that allocates the computer's.
HOW A COMPUTER PROCESSES DATA. What is hardware? Hardware is the electric, electronic and mechanical equipment that makes up a computer What is software?
Computing Fundamentals Module Lesson 23 — Computer Software
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
Getting ready. Why C? Design Features – Efficiency (C programs tend to be compact and to run quickly.) – Portability (C programs written on one system.
OPERATING SYSTEM BY KINSHUK RASTOGI. WHAT IS AN OPERATING SYSTEM? What is an operating system in the first place? An operating system is a software that.
What is O.S Introduction to an Operating System OS Done by: Hani Al-Mohair.
ITP 109 Week 2 Trina Gregory Introduction to Java.
UNIX Operating System. A Brief Review of Computer System 1. The Hardware CPU, RAM, ROM, DISK, CD-ROM, Monitor, Graphics Card, Keyboard, Mouse, Printer,
System Software (1) The Operating System
OPERATING SYSTEMS DO YOU REQUIRE AN OPERATING SYSTEM IN YOUR SYSTEM?
OPERATING SYSTEMS (OS) By the end of this lesson you will be able to explain: 1. What an OS is 2. The relationship between the OS & application programs.
Operating System Basics. Outline The User Interface Running Programs Managing Files Managing Hardware Utility Software.
Operating System.
Introduction to UNIX.
2. OPERATING SYSTEM 2.1 Operating System Function
Lecture 1: Introduction to JAVA
Microprocessor and Assembly Language
5 SYSTEM SOFTWARE CHAPTER
5 SYSTEM SOFTWARE CHAPTER
Presentation transcript:

C and Unix

Introduction to Different OS Airlines 1. Mac Airline: All the stewards, stewardesses, captains, baggage handlers, and ticket agents look the same, act the same, and talk the same. Every time you ask questions about details, you are told you don't need to know, don't want to know, and that everything will be done for you without you having to know, so just shut up.

2. OS/2 Airline: To board the plane, you have your ticket stamped ten different times by standing in ten different lines. Then you fill out a form showing where you want to sit and whether the plane should look and feel like an ocean liner, a passenger train, or a bus. If you succeed in getting on board the plane and the plane succeeds in getting off the ground, you have a wonderful trip... except for the times when the rudder and flaps get frozen in position, in which case you have time to say your prayers and get in crash position.

Windows Airline The airport terminal is nice and colorful, with friendly stewards and stewardesses, easy access to the plane, and a completely uneventful takeoff... then, once in the air, the plane blows up without any warning whatsoever.

Win NT Airline: Everyone marches out on the runway, says the password in unison, and forms the outline of an airplane. Then they all sit down and make a whooshing sound like they're flying.

Unix Airline: Everyone brings one piece of the plane with them when they come to the airport. They all go out on the runway and put the plane together piece by piece, arguing constantly about what kind of plane they're building.

Why Learn UNIX/LINUX? UNIX/LINUX plays a crucial role in academic and corporate computing. In fact, Unix/Linux powers more Internet servers and corporate networks than Microsoft Windows NT and 2000 combined.

A Couple Basic Concept and Terms 1. File. 2. Process. 3. Memory 4. HD

Binary Number Decimal Binary Octal Hexadecimal Logical Operations Arithmetic Operations

Unix What is Unix? What is Operating System (OS)? Basic Computer components. The relationship between hardware and software. The roles of OS. The roles of C (programming language).

Unix as an “open” system The internal software architecture is well defined and available in source code form, either free or for a relatively small fee. Another similar OS is Linux which is basically free.

Unix Standards AT&T’s Bell Lab first invented and introduced the original Unix version (now becomes system V). Other versions: BSD—Berkeley Standard Distribution IBM—AIX HP– HP-UX

Main Features of Unix 1. It is a multi-user system. *** The most important concept—Time Sharing 2. It shares CPUs, memory, disk space efficiently. 3. It has a large number of standard utilities. 4. It is a portable system that is available for many different platforms.

Using C with UNIX A little knowledge is necessary before you can write and compile programs on the UNIX system. Every programmer goes through the same three step cycle. 1. Writing the program into a file 2. Compiling the program 3. Running the program During program development, the programmer may repeat this cycle many times, refining, testing and debugging a program until a satisfactory result is achieved.

C and UNIX This course teaches C under the UNIX operating system. C programs will look similar under any other system (such as VMS or DOS), some other features will differ from system to system. In particular the method of compiling a program to produce a file of runnable (executable) code will be different on each system. The UNIX system is itself written in C. In fact, C was invented specifically to implement UNIX. All of the UNIX commands which you type, plus the other system facilities such as password checking, line printer queues or magnetic tape controllers are written in C.

In the course of the development of UNIX, hundreds of functions were written to give access to various facets of the system. These functions are available to the programmer in libraries. By writing in C and using the UNIX system libraries, very powerful system programs can be created. These libraries are less easy to access using other programming languages. C is therefore the natural language for writing UNIX system programs.

This Course One of the main objects for this course is to introduce programmers to the C language. Previous programming experience is assumed, so we can quickly progress to looking at the features of C and their uses. Students with little programming experience will need to do some more homework in order to keep up with the lectures.

Common C Until recently there was one dominant form of the C language. This was the native UNIX form, which for historical reasons is known as either Bell Labs C, after the most popular compiler, or K. &R. C, after the authors of the most popular textbook on the language. It is now often called "Classic C"

ANSI C The American National Standards Institute defined a standard for C, eliminating much uncertainty about the exact syntax of the language. This newcomer, called ANSI C, proclaims itself the standard version of the language. As such it will inevitably overtake, and eventually replace common C. ANSI C does incorporate a few improvements over the old common C. The main difference is in the grammar of the language. The form of function declarations has been changed making them rather more like Pascal (another used to be popular language) procedures. This course introduces ANSI C since it is supported by the SUN workstation compilers. Most C programming texts are now available in ANSI editions.

.. Unix File System Unix has three categories of files: 1. Regular Files which could be: code, data, text…. 2. Directory Files 3. Special Files device files, such as: printers, disks, terminals…

The Unix/Linux Servers Server 1 – cslinux2.cs.semo.edu Sever 2 – linux2.semo.edu