文件名称:lab5_ZiyinWang
介绍说明--下载内容均来自于网络,请自行研究使用
这是一个电梯程序,多线程编程时常用的一个模版
具体内容请看readme. 操作系统课程的经典作业!-This is a improved version of elevator simulation.
The form of command line instruction is ./elevator a b c d e f
a: number of elevators
b: number of floors
c how often people arrive
d: elevator speed: how many seconds can elevators move 1 floor
e: simulation time
f: Random function seed
ALL the arguments must be positive integer.
When the simulation time is up, all the elevators stops after moving at most one floor, then free the passenger in them and exit the threads.
具体内容请看readme. 操作系统课程的经典作业!-This is a improved version of elevator simulation.
The form of command line instruction is ./elevator a b c d e f
a: number of elevators
b: number of floors
c how often people arrive
d: elevator speed: how many seconds can elevators move 1 floor
e: simulation time
f: Random function seed
ALL the arguments must be positive integer.
When the simulation time is up, all the elevators stops after moving at most one floor, then free the passenger in them and exit the threads.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
lab5_ZiyinWang
..............\.DS_Store
__MACOSX
........\lab5_ZiyinWang
........\..............\._.DS_Store
lab5_ZiyinWang\lab5_basic
..............\..........\.DS_Store
__MACOSX\lab5_ZiyinWang\lab5_basic
........\..............\..........\._.DS_Store
lab5_ZiyinWang\lab5_basic\elevator.h
__MACOSX\lab5_ZiyinWang\lab5_basic\._elevator.h
lab5_ZiyinWang\lab5_basic\elevator_jobs.c
__MACOSX\lab5_ZiyinWang\lab5_basic\._elevator_jobs.c
lab5_ZiyinWang\lab5_basic\elevator_jobs.h
__MACOSX\lab5_ZiyinWang\lab5_basic\._elevator_jobs.h
lab5_ZiyinWang\lab5_basic\generate_people.c
__MACOSX\lab5_ZiyinWang\lab5_basic\._generate_people.c
lab5_ZiyinWang\lab5_basic\generate_people.h
__MACOSX\lab5_ZiyinWang\lab5_basic\._generate_people.h
lab5_ZiyinWang\lab5_basic\main.c
__MACOSX\lab5_ZiyinWang\lab5_basic\._main.c
lab5_ZiyinWang\lab5_basic\makefile
__MACOSX\lab5_ZiyinWang\lab5_basic\._makefile
lab5_ZiyinWang\lab5_basic\readme.txt
__MACOSX\lab5_ZiyinWang\lab5_basic\._readme.txt
lab5_ZiyinWang\lab5_improved
..............\.............\.DS_Store
__MACOSX\lab5_ZiyinWang\lab5_improved
........\..............\.............\._.DS_Store
lab5_ZiyinWang\lab5_improved\.git
..............\.............\....\branches
..............\.............\....\COMMIT_EDITMSG
..............\.............\....\config
..............\.............\....\description
..............\.............\....\HEAD
..............\.............\....\hooks
..............\.............\....\.....\applypatch-msg.sample
..............\.............\....\.....\commit-msg.sample
..............\.............\....\.....\post-update.sample
..............\.............\....\.....\pre-applypatch.sample
..............\.............\....\.....\pre-commit.sample
..............\.............\....\.....\pre-push.sample
..............\.............\....\.....\pre-rebase.sample
..............\.............\....\.....\prepare-commit-msg.sample
..............\.............\....\.....\update.sample
..............\.............\....\index
..............\.............\....\info
..............\.............\....\....\exclude
__MACOSX\lab5_ZiyinWang\lab5_improved\.git
........\..............\.............\....\info
........\..............\.............\....\....\._exclude
lab5_ZiyinWang\lab5_improved\.git\logs
..............\.............\....\....\HEAD
..............\.............\....\....\refs
..............\.............\....\....\....\heads
..............\.............\....\....\....\.....\master
..............\.............\....\objects
..............\.............\....\.......\0f
..............\.............\....\.......\..\43204737c6ee2424ca7f635fcfa2e1f439a376
..............\.............\....\.......\13
..............\.............\....\.......\..\79b2ab84d499ccef848ee44f1ba6b157f9f908
..............\.............\....\.......\3a
..............\.............\....\.......\..\28f6809980a0de8c1359fb9983e928a32c8dd9
..............\.............\....\.......\43
..............\.............\....\.......\..\66558b9a1aa2a914e7ea983f511238ee44033a
..............\.............\....\.......\75
..............\.............\....\.......\..\b0ae40e1ed31175b46245f1f4d375c8f4c30ce
..............\.............\....\.......\8e
..............\.............\....\.......\..\572de8541a5fd0a2d92d6a9c67736c7da7cada
..............\.............\....\.......\c8
..............\.............\....\.......\..\a44be583eecec920ac47cb9698dc79255ecb75
..............\.............\....\.......\cb
..............\.............\....\.......\..\2049f8c82b20635f6715fc228566b93c464c24
..............\.............\....\.......\d0
..............\.............\....\.......\..\335413d1f61049db67b03c68c6ab2384ea86ea
..............\.............\....\.......\d4
..............\.............\....\.......\..\3fd57dfe1870b7b697bbb565b438733f8b57cd
..............\.............\....\.......\d6
..............\.............\....\.......\..\b020fbe5489d9fe2a3b5ccf41b87e6e6b11688
..............\.............\....\.......\d7
..............\.............\....\.......\..\f6a52cb201394d7a2b4da3fca105302784dfaf
..............\.............\....\.......\e