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
Threads
#19
ZSTHREAD SAMPLE
Code:
TextWindow.WriteLine(ZSUtilities.GetCurrentManagedThreadId())
Sub loop
        For i = 1 To 50
              TextWindow.WriteLine(i)
               TextWindow.WriteLine(ZSUtilities.GetCurrentManagedThreadId())
               Program.Delay(5000)
        EndFor
EndSub
ZSThread.RunSub("loop")

ZSTASK SAMPLE
Code:
TextWindow.WriteLine(ZSUtilities.GetCurrentManagedThreadId())
Sub loop
        For i = 1 To 50
              TextWindow.WriteLine(i)
               TextWindow.WriteLine(ZSUtilities.GetCurrentManagedThreadId())
               Program.Delay(5000)
        EndFor
EndSub
ZSTask.RunSub("loop")
ZS
[-] The following 1 user Likes z-s's post:
  • jrmrhrb00
Reply


Messages In This Thread
Threads - by jrmrhrb00 - 11-24-2024, 10:46 PM
RE: Threads - by z-s - 11-25-2024, 04:29 AM
RE: Threads - by jrmrhrb00 - 11-25-2024, 12:12 PM
RE: Threads - by AbsoluteBeginner - 11-25-2024, 01:28 PM
RE: Threads - by z-s - 11-25-2024, 03:31 PM
RE: Threads - by jrmrhrb00 - 11-25-2024, 08:27 PM
RE: Threads - by AbsoluteBeginner - 11-25-2024, 08:51 PM
RE: Threads - by litdev - 11-25-2024, 09:47 PM
RE: Threads - by jrmrhrb00 - 11-25-2024, 11:32 PM
RE: Threads - by z-s - 11-26-2024, 02:59 AM
RE: Threads - by AbsoluteBeginner - 11-26-2024, 09:05 AM
RE: Threads - by jrmrhrb00 - 11-26-2024, 12:56 PM
RE: Threads - by AbsoluteBeginner - 11-26-2024, 03:23 PM
RE: Threads - by jrmrhrb00 - 11-26-2024, 06:41 PM
RE: Threads - by litdev - 11-26-2024, 08:57 PM
RE: Threads - by jrmrhrb00 - 11-29-2024, 02:00 PM
RE: Threads - by z-s - 11-30-2024, 04:29 PM
RE: Threads - by jrmrhrb00 - 12-01-2024, 12:33 PM
RE: Threads - by z-s - 12-02-2024, 05:02 PM
RE: Threads - by jrmrhrb00 - 12-02-2024, 11:22 PM

Forum Jump:


Users browsing this thread: 5 Guest(s)