摘要
编写模拟程序是操作系统实验的一个重要方面,模拟程序中常常要使用随机数。首先介绍了C语言提供的标准随机函数的功能、原型和调用方式,其次介绍了一种产生均匀分布的随机数的方法———高斯法。通过分析一个实验"进程调度算法",详细说明了随机函数在模拟程序中的具体用法。对于指导学生学好操作系统有积极的意义。
It is an important fact to compile imitative program in OS experiment. Random function is usually used in the course of imitative program. This paper introduces the function、prototype and the way of transfer of standard random function provided by C language. A method that produces well-distributed randon function Gauss method is also introduced.By use of an experiment'the algerithm of process schedule', the specific use of random function in the imitative program is detailed. This paper is of positive significance for student studying OS.
出处
《太原重型机械学院学报》
2004年第4期271-274,共4页
Journal of Taiyuan Heavy Machinery Institute