Where 1000 means 1000 milliseconds, so if you want your thread to sleep for one second use 1000
SonGoku
Post subject: Re: How to sleep
Post rating: 0
Posted: Sat 11 Feb, 2017, 17:08
User rating: 0
Joined: Fri 31 May, 2013, 21:20 Posts: 14 Location: Syrian Arab RepublicSyrian Arab Republic
HI
when I try to use SLEEP for about 10 second in any IF CONDITION, will the whole strategy Freeze for that period of time Or it will continue the other calculatios and when the sleep period is over it will recaluclate that IF CONDTION ?
All methods of IStrategy are called in the same thread. Therefore, the strategy will stop all other work until 10 seconds pass. We should note that each strategy instance has a separate thread and other strategies will continue executing.
okwh
Post subject: Re: How to sleep
Post rating: 0
Posted: Sat 25 Mar, 2017, 03:04
User rating: 0
Joined: Sat 18 Mar, 2017, 05:03 Posts: 26 Location: China,