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
#11
(translated by Google translator)

Hello, JR  Smile

If I understood you correctly, then now everything works as you described.
  1. A small event handler sets the appropriate flag.
  2. The main thread checks the value of this flag at the time the developer needs it.
  3. If the flag is set, the MAIN thread calls the required routine, which will be executed in this MAIN thread.
In the case when an immediate program response to an event is required, then the event handler ITSELF executes the necessary code in its parallel thread.
If the event handler calls any subroutine, then this subroutine will also be executed in the handler thread ( that is, in a parallel thread ).

I hope I haven't made a mistake anywhere.  Blush
[-] The following 2 users Like AbsoluteBeginner's post:
  • jrmrhrb00, z-s
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: 4 Guest(s)