虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

分时<b>操作系统</b>

  • 有关此程序的功能请见程序中的帮助菜单程序难点1:创建Windows xp中按钮样式解决方法:使用标签控件与形状控件一起形成此样式此方法缺点:由于标签没有TAB事件

    有关此程序的功能请见程序中的帮助菜单程序难点1:创建Windows xp中按钮样式解决方法:使用标签控件与形状控件一起形成此样式此方法缺点:由于标签没有TAB事件,所以不能使用键盘控制按钮。此缺点解方法:截取键盘事件,以响应TAB事件(时间有限,没有实现)程序难点2:实时与分时混合应用解决方法:置一FOR循环在TIMER中,先判断并响应时实进程,再置另一当循环在TIMER中,无时实时再执行分时进程。程序难点3:分页式内存管理的调度方式解决方法:具体方法见程序中的注释。程序难点4:基于优先级的调度方式解决方法:使用双重当循环,第一层判断优先级,第二层判断执行进程.此程序不足之处:不能响应键盘事件,没有程序的等待状态,由于LIST控件的先天不足进程列表看上去有点闪烁。当然程序的等待状态可以随机产生但由于没有太多时间专注于此,只好等以后再完善了。希望大家指出不足之处!

    标签: Windows 程序 TAB 标签

    上传时间: 2015-03-12

    上传用户:海陆空653

  • RSA算法 :首先, 找出三个数, p, q, r, 其中 p, q 是两个相异的质数, r 是与 (p-1)(q-1) 互质的数...... p, q, r 这三个数便是 person_key

    RSA算法 :首先, 找出三个数, p, q, r, 其中 p, q 是两个相异的质数, r 是与 (p-1)(q-1) 互质的数...... p, q, r 这三个数便是 person_key,接著, 找出 m, 使得 r^m == 1 mod (p-1)(q-1)..... 这个 m 一定存在, 因为 r 与 (p-1)(q-1) 互质, 用辗转相除法就可以得到了..... 再来, 计算 n = pq....... m, n 这两个数便是 public_key ,编码过程是, 若资料为 a, 将其看成是一个大整数, 假设 a < n.... 如果 a >= n 的话, 就将 a 表成 s 进位 (s

    标签: person_key RSA 算法

    上传时间: 2013-12-14

    上传用户:zhuyibin

  • MEga8的多通道AD转换演示程序

    MEga8的多通道AD转换演示程序,分时对多路模拟输入进行AD转换

    标签: MEga8 AD转换 多通道 程序

    上传时间: 2014-12-03

    上传用户:Thuan

  • 有关rtos的书

    有关rtos的书,从rtos的组成,特点到如何实现以及同分时系统的区别都做了初步的讲解。

    标签: rtos

    上传时间: 2014-11-07

    上传用户:semi1981

  • 数字运算

    数字运算,判断一个数是否接近素数 A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides 111. We can also specify a number in another base b, and a number in base b is a Niven number if the sum of its digits divides its value. Given b (2 <= b <= 10) and a number in base b, determine whether it is a Niven number or not. Input Each line of input contains the base b, followed by a string of digits representing a positive integer in that base. There are no leading zeroes. The input is terminated by a line consisting of 0 alone. Output For each case, print "yes" on a line if the given number is a Niven number, and "no" otherwise. Sample Input 10 111 2 110 10 123 6 1000 8 2314 0 Sample Output yes yes no yes no

    标签: 数字 运算

    上传时间: 2015-05-21

    上传用户:daguda

  • 动态扫描显示接口 动态扫描显示接口是单片机中应用最为广泛的一种显示方式之一。其接口电路是把所有显示器的8个笔划段a-h同名端连在一起

    动态扫描显示接口 动态扫描显示接口是单片机中应用最为广泛的一种显示方式之一。其接口电路是把所有显示器的8个笔划段a-h同名端连在一起,而每一个显示器的公共极COM是各自独立地受I/O线控制。CPU向字段输出口送出字形码时,所有显示器接收到相同的字形码,但究竟是那个显示器亮,则取决于COM端,而这一端是由I/O控制的,所以我们就可以自行决定何时显示哪一位了。而所谓动态扫描就是指我们采用分时的方法,轮流控制各个显示器的COM端,使各个显示器轮流点亮。

    标签: a-h 动态扫描 显示接口 单片机

    上传时间: 2015-06-03

    上传用户:磊子226

  • The government of a small but important country has decided that the alphabet needs to be streamline

    The government of a small but important country has decided that the alphabet needs to be streamlined and reordered. Uppercase letters will be eliminated. They will issue a royal decree in the form of a String of B and A characters. The first character in the decree specifies whether a must come ( B )Before b in the new alphabet or ( A )After b . The second character determines the relative placement of b and c , etc. So, for example, "BAA" means that a must come Before b , b must come After c , and c must come After d . Any letters beyond these requirements are to be excluded, so if the decree specifies k comparisons then the new alphabet will contain the first k+1 lowercase letters of the current alphabet. Create a class Alphabet that contains the method choices that takes the decree as input and returns the number of possible new alphabets that conform to the decree. If more than 1,000,000,000 are possible, return -1. Definition

    标签: government streamline important alphabet

    上传时间: 2015-06-09

    上传用户:weixiao99

  • 这是一个可使用在所有单片机上的调度器程序

    这是一个可使用在所有单片机上的调度器程序,分时调度,该版本是使用在AVR上

    标签: 单片机 调度 程序

    上传时间: 2015-08-29

    上传用户:希酱大魔王

  • 用在51单片机上的时间程序

    用在51单片机上的时间程序,分时秒计时和显示的时钟,可以用键来调整,用iic发送到显示,刚学者用单片机做菜单和机器控制可以参考下。

    标签: 51单片机 程序

    上传时间: 2013-12-08

    上传用户:semi1981

  • 上下文无关文法(Context-Free Grammar, CFG)是一个4元组G=(V, T, S, P)

    上下文无关文法(Context-Free Grammar, CFG)是一个4元组G=(V, T, S, P),其中,V和T是不相交的有限集,S∈V,P是一组有限的产生式规则集,形如A→α,其中A∈V,且α∈(V∪T)*。V的元素称为非终结符,T的元素称为终结符,S是一个特殊的非终结符,称为文法开始符。 设G=(V, T, S, P)是一个CFG,则G产生的语言是所有可由G产生的字符串组成的集合,即L(G)={x∈T* | Sx}。一个语言L是上下文无关语言(Context-Free Language, CFL),当且仅当存在一个CFG G,使得L=L(G)。 *⇒ 例如,设文法G:S→AB A→aA|a B→bB|b 则L(G)={a^nb^m | n,m>=1} 其中非终结符都是大写字母,开始符都是S,终结符都是小写字母。

    标签: Context-Free Grammar CFG

    上传时间: 2013-12-10

    上传用户:gaojiao1999