We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threading
#9
LitDev,

Here's output of the text window a little modified from your original. Thread1 is from dowork1. So, it looks like Dowork1 is ran 3 times. In your program I only see Dowork1 called one time! So, how is it called the other 2 times? I don't see it, but it must be or why would you print Total and Count 3 times? I finally got it. The reason is there are 3 completions. First 1000, then 2000, and then 3000. Then it looks like 3000 for the last one is a smaller number, but it's actually larger. It has one more digit!

PENDING
Started
Thread2 6
Thread3 7
Thread1 5
Total = 250500250000 : 229812886499 : 259811375700
Count = 1000        : 2000        : 3000
Total = 250500250000 : 4004001000000 : 4319658391125
Count = 1000        : 2000        : 3000
1
2
3
Total = 250500250000 : 4004001000000 : 20263502250000
Count = 1000        : 2000        : 3000

Here's your program back: MHMJ115.000 Slightly modified!

JR
Reply


Messages In This Thread
Threading - by jrmrhrb00 - 01-09-2025, 03:27 PM
RE: Threading - by AbsoluteBeginner - 01-09-2025, 07:12 PM
RE: Threading - by litdev - 01-10-2025, 11:40 AM
RE: Threading - by jrmrhrb00 - 01-10-2025, 06:58 PM
RE: Threading - by z-s - 01-11-2025, 02:33 AM
RE: Threading - by litdev - 01-11-2025, 10:30 AM
RE: Threading - by jrmrhrb00 - 01-11-2025, 06:25 PM
RE: Threading - by litdev - 01-12-2025, 08:15 AM
RE: Threading - by jrmrhrb00 - 01-12-2025, 02:32 PM
RE: Threading - by litdev - 01-12-2025, 10:48 PM
RE: Threading - by jrmrhrb00 - 01-13-2025, 07:51 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)