Lecture 1: Introduction to System Programming

Get Started. It's Free
or sign up with your email address
Rocket clouds
Lecture 1: Introduction to System Programming by Mind Map: Lecture 1: Introduction to System Programming

1. Manage the computer's resources and allow other programs to run and use these resources.

2. Introduction

2.1. Computer System consist of Hardware and Software

2.1.1. Software consists of - System Software, Application Software System Software eg. Operating system, Utilities Application Software eg. Computer Games, Spreadsheets, Word Processors, Databases, Internet Browsers

2.1.2. Hardware consists of- Processor, Main Memory and I/O device Hardware eg. CPU, Printer, Disks, Mouse

2.2. Difference between System Software and Application Software

2.2.1. System software used to operating computer hardware

2.2.2. Application software is used by user to perform specific task

3. Operating System

3.1. A program that acts as an intermediary between a user of a computer and computer hardware.

3.2. Goals-

3.2.1. Execute user programs and make solving user problems easier.

3.2.2. Make the computer system convenient to use.

3.3. Use the computer hardware in an efficient manner.

3.4. Operating System Features:

3.4.1. • Memory • File systems • Resource naming and location • Multitasking • Communication and synchronization • Security and protection

4. Unix

4.1. • It is an operating system • It is created in AT&T’s Bell Laboratories and evolved into what is known as “System V” UNIX • Unix is written in C language • It is easy to port to different hardware platform

5. Linux

5.1. • Linux is a freely distributed implementation of a UNIX-like kernel, the low-level core of an operating system. • Because Linux takes the UNIX system as its inspiration, Linux and UNIX programs are very similar. • Linus Torvalds

6. Why we choose Linux for SP?

6.1. • Versions of Linux are now available for a wide variety of computer systems using many different types of CPUs, including PCs based on Intel x86 and compatible processors; workstations and servers using Sun SPARC, IBM PowerPC, and Intel Itanium; and even some handheld PDAs and the Sony Playstation 2. • If it’s got a processor, someone somewhere is trying to get Linux running on it!

7. Kernel

7.1. The kernel of an operating system is the part responsible for all other operations.

7.2. Primary function:

7.3. Resources:

7.3.1. CPU, memory, I/O, etc.

7.4. Kernels also provide methods for synchronization and communication between processes called inter-process communication (IPC).

7.5. It is a bridge between applications and the actual data processing done at the hardware level.

7.6. Kernel basic facilities:

7.6.1. 1. Process management 2. Memory management 3. Device management 4. System calls

8. System Programming

8.1. What is system programming?

8.1.1. – Art of writing system software – Is a branch of computer science that deals with the structure of a machine. – The structure of a machine may compose of memory, I/O, CPU, etc. – systems programming aims to produce software which provides services to the computer hardware

8.2. Why system programming?

8.2.1. – essential to any kind of computing. – an important foundation for application development. – constantly evolving to accommodate changes in hardware. – hacking with unparalleled freedom. – fun!

9. Three cornerstones to system programming in Linux:

9.1. System calls

9.1.1. System programming starts with system calls.

9.2. The C library

9.2.1. The C library (libc) is at the heart of Unix applications.

9.3. The C compiler

9.3.1. In Linux, the standard C compiler is provided by the GNU Compiler Collection (gcc).

10. Why we use C lang. for SP?

10.1. • C is the language of system programmers. • All major OS are written in C (BSD, Linux, OS X, Windows). • C is a subset of C++ • C and C++ together are used for more than 1/3 of all open source projects at SourceForge.