![]() | Sleep function use in Testing thread coperation of Ruby. |
|
05 Sep 2011, 17:31
Balaji Salunke (1 post) |
We are testing thread coperation for our embedded ruby. We have a C ruby extension implementented the following methods Here is a code for the checking the thread cooperation //file require ‘mymodule’ $a = 0; We have ensured that the longRunningMethod takes more than 1sec(5sec) for execution using nested for loops However we observed this only when we did not have any sleep command. Anyone would give us the pointers as to why the sleep statement produces this result? [We are using ruby 1.8.6] |
| You must be logged in to comment |

