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?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,828 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,568 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Castorix31 81,636 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