-
一个保护多线程应用中共享资源的例子。作者: Xiangyang Liu
一个保护多线程应用中共享资源的例子。作者: Xiangyang Liu -protect a multi-threaded application resource-sharing example. Author : Liu Xiangyang
- 2022-02-24 10:06:40下载
- 积分:1
-
VC下通过系统快照查看进程的源代码
VC下通过系统快照查看进程的源代码 -VC snapshot view through the process of source code
- 2022-04-07 05:35:47下载
- 积分:1
-
在Dao中使用多线程
在Dao中使用多线程-Using multi-thread in DAO
- 2022-02-21 01:50:16下载
- 积分:1
-
编写一个多线程程序(两个线程),一个线程向列表控件中插入数据,一个读取并显示列表控件中的数据,显示完后删除已显示的数据。(显示的方式可以以对话框的方式显示),在...
编写一个多线程程序(两个线程),一个线程向列表控件中插入数据,一个读取并显示列表控件中的数据,显示完后删除已显示的数据。(显示的方式可以以对话框的方式显示),在读删数据时要注意线程的互斥。-prepared a multithreaded process (two threads), a thread to the list of controls to insert data, a reading list and display controls the data show that after the deletion of the data has shown. (Display in the form of the dialog box shown), in Reading censored data to the attention of mutually exclusive threads.
- 2022-02-04 00:50:12下载
- 积分:1
-
互斥API使多个实例
Mutex APIs Make multiple instance-aware programs
- 2022-03-06 14:07:48下载
- 积分:1
-
two experimental operating system : the process of scheduling strategy to achiev...
操作系统实验2:进程调度策略的模拟实现
1、 设计一个有 N个进程共行的进程调度程序。
2、 每个进程有一个进程控制块PCB来表示,进程控制块的格式为:
进程名
优先数
到达时间
需要运行时间
已占用CPU时间
进程状态
a) 进程优先数、需要运行时间、到达时间可以事先人为地指定,也可以随机产生,注意初始化上述数值时要尽量使进程并发执行,而不是按到达时间顺序调度。
b) 进程的运行时间以时间片为单位进行计算。
c) 进程状态分为就绪、运行、完成三种状态之,分别用W、R、F表示。
3、 进程调度规则如下:
a) 就绪进程获得 CPU后都只能运行一个时间片。用已占用CPU时间加1来表示。
b) 如果运行一个时间片后,进程已占用 CPU时间达到所需要运行时间,则进程完成,撤销该进程。
c) 如果运行一个时间片后,进程已占用CPU时间还未达到所需要运行时间,即进程需要继续运行,将它插入就绪队列,队列重新排序,等待CPU。
d) 重复以上过程,直到所要进程都完成为止。
-two experimental operating system : the process of scheduling strategy to achieve a simulation. Design is a process of a total of N the process scheduler. 2, each process is a process control block to PCB said that the process control block format : process a few who arrived at the priority needs time to time running CPU time a state process) process priority number. need to run time, arriving in time prior to artificially designated, can also randomly generated, Initialization attention to the above values are to m
- 2022-02-20 17:25:28下载
- 积分:1
-
search. The search software in the data is very useful software. The original C...
二份查找。本软件在数据查找中是非常实用的软件。原代码是C语言的运行环境-search. The search software in the data is very useful software. The original C language code is the runtime environment
- 2022-06-02 10:58:56下载
- 积分:1
-
用VC模拟的生产者与消费者问题,只是一个界面实现简单功能,其他得还需弥补...
用VC模拟的生产者与消费者问题,只是一个界面实现简单功能,其他得还需弥补-Analog with VC problem of producers and consumers, only a simple interface functions, other may need to make up for
- 2023-06-19 10:55:03下载
- 积分:1
-
可控制事件的线程包装类
可控制事件的线程包装类-The wrapped threads class of event that can be controlled
- 2022-01-27 22:17:03下载
- 积分:1
-
一个不错的多线程通讯的例子
一个不错的多线程通讯的例子-a good multi-threaded communication examples
- 2022-02-24 18:40:09下载
- 积分:1