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
#4
(11-25-2024, 12:12 PM)jrmrhrb00 Wrote: Z-S,

... I think the answer to my question is a called subroutine will run in its own thread...

JR

Hi, JR  Shy

You are wrong. If the subroutine was called by a UI thread, then the subroutine will be executed in the UI thread.
If the subroutine is called by an event handler, then the subroutine will run in a separate thread of its own.

In addition, a method in the LitDev library allows you to call a subroutine to work in a separate thread:
LDCall.CallAsync(dll, extension, obj, method, arguments)

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