搜索资源列表
chip(单片机源程序)
- 好东西 关于单片机的一些重要的代码本程序是操作系统中比较典型的线程同步算法中的哲学家进餐问题,为防止死锁,采取了两个条件(筷子空闲)同时满足时再允许进餐的办法来解决。期望与大家一起学习交流!-good things on SCM some important source of this procedure is more typical operating system threads simultaneously count the law on the issue of the Dinin
Philosophers
- 哲学家进餐问题,进程是独立参与分配资源的最小单位,在有线程的OS中,线程是运行的最小单位, 课堂所述进程之间的同步与互斥,实际上是属于不同进程的线程间的同步与互斥,当 然,属于同一进程的不同线程一样存在同步与互斥,其控制同步与互斥的原理跟进程 是一样的-dining philosophers problem, the process is independent participation in the allocation of resources as the smallest
5
- 编写一段程序创建两个子线程,分别对两个文件的字数进行统计,两个线程统计完后写入子线程与父线程共享的一块内存中,然后父线程从这一块内存中读取相应的信息。注意线程的同步和互斥。