Search our courses
Training

This Advanced Unix Programmingan an in-depth training course for software developers on UNIX system programming facilities. Learn how to develop sophisticated multi-process applications using system calls and library routines.

Advanced Unix Programming

Course Code

GTU19

Duration

4 Days

Course Fee

POA

Accreditation

N/A

Target Audience

  • Application developers who will be writing advanced programs on UNIX. Please contact us for further details.

Attendee Requirements

Fundamentals of UNIX as well as strong C programming skills are required for this course. These skills are taught in the following GuruTeam courses (or similar training programmes)

If you have any questions or doubts as to whether you meet the pre-requisites for this course, or indeed are wondering which course best suits you, please contact us to discuss your suitability for course attendance.

Expand all

Course Description

This Advanced Unix Programmingan an in-depth training course for software developers on UNIX system programming facilities. Learn how to develop sophisticated multi-process applications using system calls and library routines.

Course Outline

1. Course Introduction

Course Objectives

Course Overview

Using the Workbook

Suggested References

2. UNIX Standards

Brief History of UNIX

AT&T and Berkeley UNIX Systems

Major Vendors

What is a Standard?

What is POSIX?

Other Industry Specs and Standards

Library vs. System-Level Functions

3. Files and Directories

Basic File Types

File Descriptors

The open() and creat() Functions

Keeping Track of Open Files

File Table Entries

The v-node Structure

The fcntl Function

The fcntl() Function – with F_DUPFD Command

File Attributes

The access() Function

link(), unlink(), remove(), and rename() Functions

Functions to Create, Remove, and Read Directories

4. System I/O

Standard I/O vs System I/O

System I/O Calls

File and Record Locking

5. Processes

What is a Process?

Process Creation and Termination

Process Memory Layout

Dynamic Memory Allocation

Accessing Environment Variables

Real and Effective User IDs

6. Process Management

The Difference Between Programs and Processes

The fork() System Function

Parent and Child

The exec System Function

Current Image and New Image

The wait() and waitpid() Function

Interpreter files and exec

7. Basic Interprocess Communication: Pipes

Interprocess Communication

Pipes

FIFOs

8. Signals

What is a Signal?

Types of Signals

Signal Action

Blocking Signals from Delivery

The sigaction() Function

Signal Sets and Operations

Sending a Signal to Another Process

Blocking Signals with sigprocmask()

Scheduling and Waiting for Signals

Restarting System Calls (SVR4)

Signals and Reentrancy

9. Introduction to Pthreads

Processes and Threads

Creating Threads

Multitasking

Overview of Thread Architectures

Processes Versus Threads

The Pthreads API

Thread Termination

Joining Threads

Detaching Threads

Passing Arguments to Threads

10. Pthreads Synchronization

The Sharing Problem

Mutexes

Creating and Initializing Mutexes

Using Mutexes

Additional Synchronization Requirement

Using Condition Variables

11. Overview of Client/Server Programming

Designing Applications for a Distributed Environment

Clients and Servers

Ports and Services

Connectionless vs. Connection-Oriented Servers

Stateless vs. Stateful Servers

Concurrency Issues

12. The Berkeley Sockets API

Berkeley Sockets

Data Structures of the Sockets API

Socket System Calls

Socket Utility Functions

13. TCP Client Design

Algorithms Instead of Details

Client Architecture

Generic Client/Server Model – TCP

The TCP Client Algorithm

14. TCP Server Design

General Concepts

Iterative Servers

Concurrent Servers

Performance Consideration

An Iterative Server Design

A Concurrent Server Design

15. System V Interprocess Communication

System V IPC

Elements Common to msg, shm, and sem Facilities

The Three System V IPC Facilities

IPC via Message Queues

IPC via Shared Memory

Coordinating the Use of Shared Memory Segments

Semaphore Sets – emget()

Semaphore Sets – semctl()

Semaphore Sets – the semop() calls

Shared Memory Coordination Using Semaphores

Commands for IPC Facility Handling – ipcs and ipcrm

16. Appendix A – Date and Time Functions

Overview

Time Representations

Decoding Calendar Time

Shorthand Functions – asctime(), ctime()

Formatting Date and Time Strings

Process Times

The Difference Between clock() and times()

Berkeley High Resolution Timers

17. Appendix B – Standard I/O

Standard I/O Calls to manipulate streams

Standard I/O Calls which perform character I/O

Standard I/O Calls which perform string I/O

Standard I/O Calls Which Perform Formatted I/O

Standard I/O Calls Which Perform Binary I/O

Learning Path
  • There are a number of options of suitable follow-on courses, depending on your business needs. Please contact us for further details.
Ways to Attend
  • Attend a public course, if there is one available. Please check our schedule, or register your interest in joining a course in your area.
  • Private onsite Team training also available, please contact us to discuss. We can customise this course to suit your business requirements.

Private Team Training is available for this course

We deliver this course either on or off-site in various regions around the world, and can customise your delivery to suit your exact business needs. Talk to us about how we can fine-tune a course to suit your team's current skillset and ultimate learning objectives.

Private Team Training | Contact us

Technical ICT learning & mentoring services

Private Team Training

Our instructors are specialist consultants with vast real world experience and expertise allowing them to design and deliver client-focused courses for your organisation.

Learn more about our Private Team Training

What Our Clients Say

"For a senior technical person, the best of this course is setting a structured and methodical approach for evaluation techniques we already use. It would be also very beneficial to senior managers (100+ reports). There is a huge hype on Gen AI at the moment, and this course will help them see the potential, current limitations and pitfalls of this technology".

 

Critical Thinking with AI for tech professionals

In-person course October '25

 


“It was very positive. This course was 4 days but covered a semester worth of work if it was done in college. The labs were relevant and delegates were provided the lab/coursebook for further study and practice after the course finished. GuruTeam's course was excellent and provides a deeper understanding of the architecture and how it all works. The hands-on aspect was very helpful as it helped solidify the concepts as I went along."

 

Kubernetes Administration Certification - GTLFK

Live Online September 2024

 

 

 

“The Instructor was very knowledgeable, laid back and very approachable during the course. The environment setup was second to none.  Very easy to jump in and follow along with minimal pre-req setup."

Kubernetes Administration Certification - GTLFK

Onsite May 2024

 

“The experience was complete for me. I like how the training was sequenced - the slides organization, the examples and explanations and then the exercises. Time for exercises and support by the Instructor was great plus answering the questions and going out for answers and coming back with examples as brilliant. I loved how much I refreshed and how I learned and got inspired to improve stuff at work.”

 

Docker - GTDK1

Live Online December 2024

 

“Great instructor, who encouraged active participation. The breakout groups and exercises kept the group engaged and the content relevant to our own products”.

 

Site Reliability Engineering Foundation - GTDSRE

Live Online January 2022

 

 

 

"Intelligence is the ability to avoid doing work, yet
getting the work done"

Linus Torvalds, creator of Linux and GIT

Technical ICT learning & mentoring services

About GuruTeam

GuruTeam is a high-level ICT Learning, Mentoring and Consultancy services company. We specialise in delivering instructor-led on and off-site training in Blockchain, Linux, Cloud, Big Data, DevOps, Kubernetes, Agile, Software & Web Development technologies. View our Testimonials

Download our eBrochure
Our Accreditation Partners
  •  
  •  
  •  

 

Upcoming Courses

Kubernetes Admin

Dates to be confirmed

 Live Online
 GMT +01:00  09:30 - 17:00 hrs

This Kubernetes Administration
Certification training course is
suitable for anyone who wants
to learn  the skills necessary to build and administer a Kubernetes cluster.

 

LEARN MORE

RUST PROGRAMMING INTRODUCTION

Dates to be confirmed

 Live Online
 GMT +01:00  09:30 - 17:00 hrs

This Rust Programming Introduction training course will help you understand what Rust applications look like, how to write Rust applications properly, and how to get the most out of the language and its libraries.
 

Learn More

NEW FAST TRACK PYTHON SERIES

Dates to be confirmed

Live Online
GMT +01.00  09:30 - 17:00 hrs

Hit the ground running.....
GuruTeam’s new Python Fast Track series Instructor-led live online training
designed & delivered by industry experts.

Python Fast Track I Comprehensive
Python Fast Track II Expert
Python Fast Track III for Data Science

 

 

 

Learn More

GO PROGRAMMING INTRODUCTION

 Dates to be confirmed
  

Live Online
GMT +01:00  09:30 - 17:00 hrs

This Go Programming Introduction training course will help you understand how Go works, and immediately be more productive. If you are building a team using Go, this will be a great opportunity to get your team on the same page and speaking the same language.

Learn More

Newsletter

Stay up to date, receive updates on scheduled dates, new courses, offers, and events.

Subscribe to our Newsletter