C# Threading Handbook

 < Day Day Up > 


D

database connection pool example, 127

implementing the pool, 127

DBConnectionSingleton class, 132

ObjectPool class, 128

using the database connection pool, 134

why use a singleton?, 134

DataImport example, 217

classes used, 217

code, 218

logical errors, 223

testing the application, 222

DataSet class, System.Data namespace

ReadXml method, 221

deadlocks, 116

detecting, 116

example, 117

Debug class, System.Diagnostics namespace, 202, 216

Debug statements

stripping from application, 212

debugger

see Visual Studio .NET debugger

debugging, 193, 195

.NET classes, 193

ASP applications, 193

creating application code, 194

Decrement method, Interlocked class, 113

synchronization support, 86

DefaultTraceListener class, System.Diagnostics namespace, 206

delegates

asynchronous calls, 239

designing threaded applications, 143

considerations, 144

tasks requiring separate threads, 144

destroying threads, 65

Destroying example, 65

Disabled option, SynchronizationOption enumeration, 90

Dns class, System.Net namespace, 229, 237

resolving host names into IP address, 237

DoCallBack method, AppDomain class, 27


 < Day Day Up > 

Категории