Error at last | Sololearn: Learn to code for FREE!
21st Jun 2018, 12:24 PM
ŗ§ēŗ§ĺŗ§ģŗ•áŗ§∂
ŗ§ēŗ§ĺŗ§ģŗ•áŗ§∂ - avatar
3 Réponses
+ 2
If you just change the name of the function in the thread functions to be capitalized (Numbers in both of them should be) and change the second t1 variable to t2, it should work.
21st Jun 2018, 12:47 PM
Faisal
Faisal - avatar
+ 1
Faisal ya I debugged but still it's not sleeping for certain Time
21st Jun 2018, 12:52 PM
ŗ§ēŗ§ĺŗ§ģŗ•áŗ§∂
ŗ§ēŗ§ĺŗ§ģŗ•áŗ§∂ - avatar
+ 1
kamesh shekhar prasad It actually seems that the sleep functions are working just as they're supposed to. When running your code, the output of both functions will start to merge towards the end, which is a result of them pausing for the given amount of time. By taking away the sleep functions, they just end up running separately like the first time running through them.
21st Jun 2018, 1:24 PM
Faisal
Faisal - avatar