本文介绍了睡觉时如何使用我的程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨在我的程序中,我使用sleep
但是当这个睡眠时间达到8个小时或类似的事情时,直到完成睡眠,我才能使用程序的其他部分....
所以现在我该如何使用它呢?
多线程可以实现吗?如果是的话,如何实现?
我知道我为此很难,但是我应该在程序上安排时间表
所以请给我一种带有时间表的方法或源代码
而且...用计时器很难做到
请指导我

解决方案


hiin my program i use sleep
but when this sleep for 8 hours or some thing like this i can not use of others piece of my program until finished sleeping....
so now how can i use it??
can be possible with multi thread??if yes how??
i know my way is hard for this but i should to have scheduling on my program
so please give me a way or source code with schedule
and...with timer is very hard to do it
please guide me

解决方案


这篇关于睡觉时如何使用我的程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-26 17:46
查看更多