Index_S

 < Day Day Up > 



S

scaling threaded applications, 157

CLR and thrreads, 159

programming the ThreadPool class, 166

multi-threaded MSMQ listener, 173

thread pool manager creation, 177

thread pooling, 158

role of CLR, 160

SecurityException class, System.Security namespace, 163

Set method, AutoResetEvent class, 173

Set method, ManualResetEvent class

manual synchronization, 106

ManualSet example, 109

SetData method, AppDomain class, 24, 25, 27

SetData method, Thread class, 34

setting AppDomain data, 23

setting breakpoints, 199

Shared declaration

Trace class, System.Diagnostics namespace, 202

simple_thread example, 35

Single Threaded Apartment

see STA.

single threaded processes, 11

single-writer and multiple-reader

ReaderWriterLock class, System.Threading namespace, 102

Sleep method, Thread class, 34, 41, 54, 55, 88, 153

deadlocks, 119

pausing execution of a thread

example, 41

SMP systems

benefits of threading, 177

Socket class, System.Net.Sockets namespace, 230

socket programming, 230

SocketAddress class, System.Net namespace, 229

SocketException class, System.Net.Sockets namespace, 230

SocketPermission class, System.Net namespace, 229

Source property, EventLog class, 207

spawning multiple threads within a thread, 48

performance considerations, 52

SpinWait method, Thread class, 34

SQL Server stored procedures

debugging, 195

SqlCommand class, System.Data.SqlClient namespace

ExecuteReader method, 252

SqlCommandBuilder class, System.Data.SqlClient namespace, 221

SqlConnection class, System.Data.SqlClient namespace, 221

instantiating, 250

SqlDataAdapter class, System.Data.SqlClient namespace, 221

Fill method, 221

Update method, 221, 222

SqlDataReader class, System.Data.SqlClient namespace, 252

STA threading model, 140

object-per-client model, 140

safety of, 141

STA value, ApartmentState enumeration, 143

Start method, Thread class, 34, 37

scheduling, 55

STAThreadAttribute class, System namespace

specifying Apartment Threading model, 141

Step Into

Visual Studio .NET Debugger, 199

Step Out

Visual Studio .NET Debugger, 199

Step Over

Visual Studio .NET Debugger, 199

StreamWriter class, System.IO namespace

Flush method, 244

Write method, 244

StringBuilder class, System.Text namespace, 47, 241, 252

ToString method, 242

Supported option, SynchronizationOption enumeration, 90

Suspend method, Thread class, 34, 58

raising ThreadStateException class, 61

Suspend value, ThreadState enumeration, 61

SuspendRequested value, ThreadState enumeration, 61

symmetric multi-processor systems

see SMP systems.

synchronization, 81

database connection pool example, 127

deadlocks, 116

performance and, 115

race conditions, 82

static variables and methods, 113

ThreadStaticAttribute class, 113

thread-safe wrappers example, 119

thread-safety, 81

synchronization strategies

CLI, 89

manual synchronization, 105

AutoResetEvent class, 110

Interlocked class, 112

ManualResetEvent class, 106

Mutex class, 111

static methods, 113

synchronization and performance, 115

synchronized code regions, 90

CriticalSection method, 93

lock keyword, 100

Monitor class, 90

ReaderWriterLock class, 90, 102

synchronized contexts

ContextBoundObject class, 89

SynchronizationAttribute class, 89

SynchronizationAttribute class, System.EnterpriseServices namespace

synchronization support, 86

synchronized contexts, 89

SynchronizationLockException class, System.Threading namespace, 32

SynchronizationOption enumeration, System.EnterpriseServices namespace, 89

Required value, 90

table of options, 90

synchronized code regions

CriticalSection method, 93

lock keyword, 100

Monitor class, 90

Enter and Exit methods, 91

TryEnter method, 99

Wait and Pulse mechanism, 95

ReaderWriterLock class, System.Threading namespace, 90, 102

synchronized contexts

ContextBoundObject class, 89

SynchronizationAttribute class, 89

Synchronized field, MethodlmplOptions enumeration, 87

Synchronized method, Hashtable class, 119, 125

synchronized wrappers

Collection classes, 119

System namespace

AppDomain class, 21, 22, 23, 36

ArgumentOutOfRangeException class, 164

CrossAppDomainDelegate class, 27

IAsyncResult interface, 240

MTAThreadAttribute class, 142

STAThreadAttribute class, 141

TimeSpan class, 46

TimeSpan structure, 175

System.Collections namespace

ArrayList class, 147

System.Configuration namespace, 236

System.Data.SqlClient namespace

DataImport example, 217

SqlCommand class, 252

SqlCommandBuilder class, 221

SqlConnection class, 221, 250

SqlDataAdapter class, 221, 222

SqlDataReader class, 252

System.Diagnostics namespace

BooleanSwitch class, 202, 212

Debug class, 202, 216

DefaultTraceListener class, 206

EventLog class, 207

EventLogTraceListener class, 206

Process class, 14

TextWriterTraceListener class, 206, 209, 217, 218

Trace class, 202, 211

TraceSwitch class, 202

System.EnterpriseServices namespace, 176

SynchronizationOption enumeration, 89

System.IO namespace

FileSystemEventArgs class, 220

FileSystemEventHandler delegate, 219

FileSystemWatcher class, 217

System.Messaging namespace

Message class, 176

MessageQueue class

EndReceive method, 176

ReceiveCompletedEventHandler class, 175

System.Net namespace, 227

functionality, 228

networking in .NET, 228

table of main classes, 228

System.Net.Sockets namespace

contained within System.NET namespace, 228

focuses on transport layer, 230

tableof classes, 230

TcpClient class, 236, 237

System.Runtime.CompilerServices namespace

MethodImplAttribute class, 87

MethodImplOptions enumeration, 87

System.Text namespace

ASCII class, 253

StringBuilder class, 47, 241

System.Threading namespace

classes, 31

classes used for manual synchronization, 105

creating a thread, 35

Interlocked class, 249

Monitor class, 183

Thread class, 28, 153

ThreadAbortException class, 53, 65

ThreadPool class, 161, 162

ThreadPriority enumeration, 43

ThreadStart delegate

execution branching, 38

ThreadState enumeration

values, 53

Timer class, 46

TimerCallback delegate, 46

timers and callbacks, 45

System.Web.UI.WebControls namespace

ListBox control, 246

System.Windows.Forms namespace

ListView control, 233

ListViewltem class, 243

MainMenu class, 233



 < Day Day Up > 



C# Threading Handbook
C# Threading Handbook
ISBN: 1861008295
EAN: 2147483647
Year: 2003
Pages: 74

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net