UAOOI.ProcessObserver.RealTime.Processes Namespace
UAOOI.ProcessObserver.RealTime.Utils.Collections.Generic Namespace
UAOOI.ProcessObserver.RealTime

Manager..::..StartProcess Method (ThreadStart, String, Boolean, ThreadPriority)

Initializes a new instance of the Thread class and causes it to be scheduled for execution.

Namespace:  UAOOI.ProcessObserver.RealTime.Processes
Assembly:  RealTime (in RealTime.dll)

Syntax


public static Thread StartProcess(
	ThreadStart proces,
	string name,
	bool isBackground,
	ThreadPriority priority
)
Public Shared Function StartProcess ( _
	proces As ThreadStart, _
	name As String, _
	isBackground As Boolean, _
	priority As ThreadPriority _
) As Thread
public:
static Thread^ StartProcess(
	ThreadStart^ proces, 
	String^ name, 
	bool^ isBackground, 
	ThreadPriority^ priority
)

Parameters

proces
Type: ThreadStart
A ThreadStart delegate that represents the methods to be invoked when this thread begins executing.
name
Type: String
A string containing the name of the thread, or a null reference if no name was set.
isBackground
Type: Boolean
A value indicating whether or not a thread is a background thread.
priority
Type: ThreadPriority
A value indicating the scheduling priority of a thread.

Return Value

An instance of the Thread type.

Remarks


A thread is either a background thread or a foreground thread. Background threads are identical to foreground threads, except that background threads do not prevent a process from terminating. Once all foreground threads belonging to a process have terminated, the common language runtime ends the process. Any remaining background threads are stopped and do not complete.