-
并发服务器(二)多线程
• POSIX 线程库Pthreads介绍
• POSIX pthreads库提供的基本线程的操作
• 线程的属性
• 线程互斥和同步
• 使用GDB 调试线程以及线程的调优
• 多线程网络服务器模型
• 试验题目
- 2022-03-25 21:46:28下载
- 积分:1
-
编译原理课程:egrep命令c++/bison 实现
编译原理课程:egrep命令c++/bison 实现
详见文件中readme文件
usage:
this_program "regular_expression" [output.txt]
- 2022-03-03 23:40:38下载
- 积分:1
-
raw socket
udp RAW SOCKET EXAMPLE
UDP Raw socket的例子..怎么创建一个raw socket 怎么发送UDP包..怎么过滤包.
- 2022-02-21 14:13:14下载
- 积分:1
-
培训-Linux(12)
【实验目的】
1、了解串口设备文件系统的使用方法
2、掌握 Qt 编程方法与技巧
3、掌握 Qtopia 应用程序的配置过程
- 2022-01-25 22:37:02下载
- 积分:1
-
星热式打印机的杯子
///////////////////////////////////////////////////////////////////////////
- 2022-01-26 00:27:08下载
- 积分:1
-
视频监控
本文从硬件设计和软件设计两个方面阐述了一种基于S3C6410 处理器的视频采集传输系统的设计和实现。本系统采用基于ARM11 核心的三星S3C6410 处理器,通过V4L2接口编程采集外接摄像头视频数据,采用了硬件编码器进行H.264 编码,提高了编码效率。方案采用Live555对H.264 视频流封装打包,根据RTSP 协议经由网络传送至PC 机,使用VLC进行直播。经实验测试证明系统设计是可行的,达到了预期的功能要求。
- 2022-08-05 18:16:05下载
- 积分:1
-
Linux下的聊天室
应用背景
This is the server and client code in C for a simple chat program for multiple client communication.
This repository contains code for a very simple chat program implemented on the linux system, using base system libraries and the C programming language. The program consists of two major components, the first being the server program and the second is the Client program.
关键技术
The server program maintains a list of clients and also a queue of client messages. It uses semaphores to make sure synchronisation errors do not occur.
The server program accepts one optional input argument – listen_port_number. If this argument is missed, the server will use the default port number 3500 (defined in the provided header file chat_server.h). Once it starts, it runs forever. To ter
- 2023-07-14 01:50:03下载
- 积分:1
-
nachos HW3
nachos 的fork 处理
This
homework provides the instruction to install and test run the Nachos
instructional operating system within our ECS UNIX system. In addition, it is also a reading assignment
which provides an introduction to the software.
Please read and comprehend the materials in the assigned reading
carefully. They will serve as the basis and provides clues for the upcoming
programming assignments.
- 2022-10-24 07:45:03下载
- 积分:1
-
Linux 进程线程控制
首先,父进程执行fork()函数创建子进程,在子进程中实现两个文件的建立,父进程等待子进程执行完后,通过pthread_create()创建两个线程threads0、threads1。然后由两个线程分别统计两个文件中的字符数,处理完成后分别调用pthread_exit()函数退出。父进程等待线程退出后打印出总字符数total。父进程调用vfork()函数创建子进程,使用execl()函数调用程序change,将两个文件中的小写字母转换成大写字母,执行完成后exit()退出。父进程等待整个过程执行完之后,exit(0)退出。
- 2022-01-25 20:01:06下载
- 积分:1
-
train system
一个火车订票系统的项目,有大致的框架,可以实现购票、退票、余票查询、列车时刻表查询、代售点查询、排队买票等等的功能,基本功能都已经具备,但是代码的细节还有待优化,毕竟只是个菜鸟的练手作品
- 2022-11-03 15:35:03下载
- 积分:1