How many processes can use a thread?

Robert Gustafson 606 Reputation points
2023-02-07T06:03:58.1133333+00:00

WHAT I HAVE:

Visual Basic 2019, WinForms

MY QUESTION:

True or false: Multiple application domains within the same process can use the same thread, but multiple processes can't do so. If I look within Process.GetProcesses and ProcessThread.Id for the thread identifier, returned by lParam of WM_ACTIVATEAPP, for an opposing program, the first local process with that Id is the only one, right?

Developer technologies Windows Forms
Developer technologies VB
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Castorix31 90,681 Reputation points
    2023-02-07T08:07:35.91+00:00

    See the doc :

    "An application consists of one or more processes. A process, in the simplest terms, is an executing program. One or more threads run in the context of the process. "

    https://learn.microsoft.com/en-us/windows/win32/procthread/processes-and-threads

    1 person found this answer helpful.

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.