CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - c B
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - c B - List
[
Process-Thread
]
multi-thread1
DL : 0
一个多线程并行执行代码,A,B,C三种进程条显示-a multithreaded parallel execution of code, A, B, C of the three processes revealed
Date
: 2008-10-13
Size
: 35.57kb
User
:
wangxin
[
Process-Thread
]
myCreatProcess
DL : 0
进程的创建 编写一段程序,使用系统调用fork()创建两个子进程。当此程序运行时,在系统中有一个父进程和两个子进程活动。让没一个进程在屏幕上显示一个字符:父进程显示字符“a”;子进程分别显示字符“b”和字符“c”。试观察记录屏幕上的显示结果,并分析原因。 -process for the preparation of the establishment of procedures, the use of system calls fork () to create two child process. When running, the system has a process and the father of two sub-process activities. Let no one in the process displayed on a screen characters : Father process showed character "a"; child process showed the character "b" and the character "c." Examination observation records on the screen to show results, and analyze the causes.
Date
: 2008-10-13
Size
: 15.42kb
User
:
fred
[
Process-Thread
]
cankaodaima
DL : 0
操作系统实验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 make the complicated process of implementation, and not by order of arrival time scheduling. B) the process of running time to time slice for calculation. C) process into a state of readiness, operations, completed three Status, W, R, F said. 3, the process of scheduling rules ar
Date
: 2008-10-13
Size
: 985byte
User
:
qiuzhicheng
[
Process-Thread
]
multi-thread1
DL : 0
一个多线程并行执行代码,A,B,C三种进程条显示-a multithreaded parallel execution of code, A, B, C of the three processes revealed
Date
: 2025-12-21
Size
: 35kb
User
:
wangxin
[
Process-Thread
]
myCreatProcess
DL : 0
进程的创建 编写一段程序,使用系统调用fork()创建两个子进程。当此程序运行时,在系统中有一个父进程和两个子进程活动。让没一个进程在屏幕上显示一个字符:父进程显示字符“a”;子进程分别显示字符“b”和字符“c”。试观察记录屏幕上的显示结果,并分析原因。 -process for the preparation of the establishment of procedures, the use of system calls fork () to create two child process. When running, the system has a process and the father of two sub-process activities. Let no one in the process displayed on a screen characters : Father process showed character "a"; child process showed the character "b" and the character "c." Examination observation records on the screen to show results, and analyze the causes.
Date
: 2025-12-21
Size
: 15kb
User
:
fred
[
Process-Thread
]
cankaodaima
DL : 0
操作系统实验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 make the complicated process of implementation, and not by order of arrival time scheduling. B) the process of running time to time slice for calculation. C) process into a state of readiness, operations, completed three Status, W, R, F said. 3, the process of scheduling rules ar
Date
: 2025-12-21
Size
: 1kb
User
:
qiuzhicheng
[
Process-Thread
]
first
DL : 0
已知各进程的的到达时间等如下: 进程名 到达时间 服务时间 优先数 A 0 3 12 B 1 5 31 C 2 2 21 D 3 4 10 分别实现下面两种调度算法 • 按优先数调度算法实现处理器调度 • 按时间片轮转法实现处理器调度(时间片以2ms为单位) -Known to the process, such as the arrival time as follows: the process of the arrival time of service priority number A 0 3 12B 1 5 31C 2 2 21D 3 4 10, respectively, to achieve the following two scheduling algorithm
Date
: 2025-12-21
Size
: 1kb
User
:
00
[
Process-Thread
]
EmployeeDB
DL : 0
操作系统调度问题,挂起,等待序列等……a) 时间片轮转 b) 动态优先权调度 c) 高响应比优先调度 -Operating system scheduling problem, hang, waiting for sequence, such as ... ... a) time slice rotation b) the dynamic priority scheduling c) respond to more than high-priority scheduling
Date
: 2025-12-21
Size
: 2.13mb
User
:
xinxioan
[
Process-Thread
]
R3-debug.
DL : 0
a. 项目名称:R3Dbg(调试器内核),Gravedigger(调用示例) b. 本项目的任务开发者:傅强。 c. 开发背景:科锐3阶段项目。 d. 运行环境:WIN2000,XP。 -a. Project Name: R3Dbg (kernel debugger), Gravedigger (called sample) b. The task of the project developers: Fu Qiang. c. Development Background: Career Stage 3 project. d. Operating Environment: WIN2000, XP.
Date
: 2025-12-21
Size
: 347kb
User
:
过客
[
Process-Thread
]
cipandiaodu
DL : 0
1、对于如下给定的一组磁盘访问进行调度: 请求服务到达 A B C D E F G H I J K 访问的磁道号 30 50 100 180 20 90 150 70 80 10 160 2、要求分别采用先来先服务、最短寻道优先以及电梯调度方法进行调度。 3、要求给出每种算法中磁盘访问的顺序,计算出平均移动道数。 4、假定当前读写头在90号,向磁道号增加的方向移动。-1, for a given set of as disk access scheduling: Request service ABCDEFGHIJK access track to reach No. 30 50 100 1,802,090,150,708,010,160 2, the requests were a first-come, first served, shortest seek first, and elevator scheduling method of scheduling. 3, the algorithm required to give each disk access order to calculate the average number of mobile channel. 4, assuming that the current read-write head 90 to move the direction of increasing track number.
Date
: 2025-12-21
Size
: 1.16mb
User
:
刘莹
[
Process-Thread
]
HW3
DL : 0
c语言,多线程实现简单的终端处理器,读取文件,遇到特殊字符时采取相应操作 -A multi-threaded program using the pthread library. Your assignment is to write a program that emulates a simple terminal handler. The terminal handler process consists of three threads. Thread 1reads characters from input. In the input, some upper case letters represent control characters. Each character read by thread 1 is passed onto thread 2 before another is read. Thread 2 stores the characters as received. However, the following four characters are control characters that ask thread 2 to take action accordingly. B – erase last character from buffer L – insert an end-of-line marker into buffer C – remove contents of buffer U – remove current incomplete line from buffer The third thread, Thread 3, should read complete lines of characters (a line of character is complete, if it has an end-of-line character) from the buffer. Thread 3 should then print this line. Thread 2 should allow access only to completed lines in the buffer. You may assume that a completed line
Date
: 2025-12-21
Size
: 2kb
User
:
za
[
Process-Thread
]
producer-and-consumer
DL : 0
创建4个POSIX线程。其中2个线程(A和B)分别从2个数据文件(data1.txt和data2.txt)读取10个整数. 线程A和B把从文件中读取的逐一整数放入一个缓冲池. 缓冲池由n个缓冲区构成(n=5,并可以方便地调整为其他值),每个缓冲区可以存放一个整数。另外2个线程,C和D,各从缓冲池读取10数据。线程C、D每读出2个数据,分别求出它们的和或乘积,并打印输出。-Creating four POSIX threads. Where two threads (A and B) were read 10 integer from 2 data files (data1.txt and data2.txt). Individually integer thread A and B to read from a file into a buffer pool. Cushion buffer pool constituted by n (n = 5, and can be easily adjusted to other values), each buffer can store an integer. Further two threads, C and D, the data is read from the buffer pool 10. Thread C, D 2 data is read out of each, and are obtained separately, or product thereof, and print output.
Date
: 2025-12-21
Size
: 1kb
User
:
徐舒怡
[
Process-Thread
]
process
DL : 0
自己实现的进程管理,能够选择程序运行, b.bat是用mingw4.7.2编译的批处理 tc是用tiny c编译的批处理
Date
: 2025-12-21
Size
: 9kb
User
:
xq
[
Process-Thread
]
YEPKRCE
DL : 0
here i have attached C coding for LDPC decoder div hr div B 文件列表 B :()
Date
: 2025-12-21
Size
: 2kb
User
:
Bjsfvu
[
Process-Thread
]
mzieption
DL : 0
a GSM 06 10 RPE­LTP coder and decoder in C div hr div B 文件列表 B : d()
Date
: 2025-12-21
Size
: 56kb
User
:
mismmum
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.