C COURSEWARE
Lecture notes + integrated exercises, solutions and marking
Contents
The Common Desktop Environment
C/C++ Program Compilation
C Basics
Conditionals
Looping and Iteration
Arrays and Strings
Functions
Further Data Types
Pointers
Dynamic Memory Allocation and Dynamic Structures
Advanced Pointer Topics
Low Level Operators and Bit Fields
The C Preprocessor
C, UNIX and Standard Libraries
Integer Functions, Random Number, String Conversion, Searching
and Sorting: <stdlib.h>
Mathematics: <math.h>
Input and Output (I/O):stdio.h
String Handling: <string.h>
File Access and Directory System Calls
Time Functions
Process Control: <stdlib.h>,<unistd.h>
Interprocess Communication (IPC), Pipes
IPC:Interrupts and Signals: <signal.h>
IPC:Message Queues:<sys/msg.h>
IPC:Semaphores
IPC:Shared Memory
IPC:Sockets
Threads: Basic Theory and Libraries
Processes and Threads
Thread Levels
Threads libraries
The POSIX Threads Library:libpthread, <pthread.h>
Creating a (Default) Thread
Wait for Thread Termination
A Simple Threads Example
Detaching a Thread
Create a Key for Thread-Specific Data
Delete the Thread-Specific Data Key
Set the Thread-Specific Data Key
Get the Thread-Specific Data Key
Global and Private Thread-Specific Data Example
Getting the Thread Identifiers
Comparing Thread IDs
Initializing Threads
Yield Thread Execution
Set the Thread Priority
Get the Thread Priority
Send a Signal to a Thread
Access the Signal Mask of the Calling Thread
Terminate a Thread
Solaris Threads: <thread.h>
Compiling a Multithreaded Application
Further Threads Programming:Thread Attributes (POSIX)
Further Threads Programming:Synchronization
Mutual Exclusion Locks
Condition Variable Attributes
Threads and Semaphores
Thread programming examples
Remote Procedure Calls (RPC)
Protocol Compiling and Lower Level RPC Programming
Writing Larger Programs
- Program Listings
· 深入理解 Mybatis 分库分表执行原理
· 如何打造一个高并发系统?
· .NET Core GC压缩(compact_phase)底层原理浅谈
· 现代计算机视觉入门之:什么是图片特征编码
· .NET 9 new features-C#13新的锁类型和语义
· 手把手教你在本地部署DeepSeek R1,搭建web-ui ,建议收藏!
· Spring AI + Ollama 实现 deepseek-r1 的API服务和调用
· 《HelloGitHub》第 106 期
· 数据库服务器 SQL Server 版本升级公告
· C#/.NET/.NET Core技术前沿周刊 | 第 23 期(2025年1.20-1.26)
2007-07-15 关于异步、线程、委托的一个问题