Hi Ongthan,
Cám ơn các thông tin rất nóng về SW của bạn.
Mình có 1 thắc mắc nhỏ là lệnh sleep trong engine XQMS nhằm mục đích gì không?
Nếu có thể mong bạn giải đáp giúp mình.
Sau đây là một vài thông tin mình tìm kiếm về lệnh này, nhưng vốn tiếng Anh hạn hẹp nên không thể hiểu hết nghĩa của nó.
Đại khái là dừng việc thực hiện của động cơ.Trích dẫn:
Threads[Sleep] - pause the execution of the engine
Calling Sequence
Sleep( n )
Parameters
n
-
(numeric) the number of seconds to sleep
Description
•
The Sleep function pauses the execution of the Maple engine for a specified length of time. While paused, the engine will not use CPU resources.
•
n is the number of seconds the evaluation should wait. n can be less than 1 for sub-second pauses.
•
The length of time spent sleeping can be lengthened by other activity on the system, the time necessary to process the call and by the granularity of the system timers.
•
The Sleep command should not be used to implement synchronization between threads. Using Sleep to have one thread wait until another thread "is ready" is unreliable. Use mutexes or condition variables instead.
Với số thời gian hạn định, trong khi dừng động cơ sẽ không sử dụng tài nguyên của CPU.
Còn một loạt ghi chú tiếp theo thì mình lại mù tịt nên mong bạn giúp.
Cảm ơn rất nhiều,
tonetone

