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
#4
LitDev,

If I put the following in after Dowork1, Dowork2, and Dowork3: Thread=ZSUtilities.GetCurrentThreadId() and TW.WriteLine(Thread). Then I can see the threads that the work is done on which to me is just cycles through the loops. These should be running independently. I don't see that much difference in the totals. I do see the difference if it uses 1000,2000, or 3000.

An interesting thing is the threads are always 7 5 6. for the Dowork2 3000 thread 5 is really Fast 4011954185880. If you could actually select the thread to run on this would be the one.

I think there should be an object that is called LDThreading. Having a LDCall to some function that runs asynchronously doesn't mean that much to me. Maybe it would help my understanding better if you could explain the program and what you are trying to show.

Really good write up in your post!

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: 5 Guest(s)