The TraceSwitch Class
The TraceSwitch Class This class is an enhanced version of the BooleanSwitch class because it allows us to choose whether to deactivate tracing functionality or display messages using an importance-based hierarchy. The following table listsCiteste tot ... 545 cuvinte
Dimensiune mica - fara poza |
|
|
Debugging and Tracing Threads
Debugging and Tracing Threads Overview Debugging and tracing are two techniques frequently, and often necessarily, employed by developers. The former allows a developer to analyze an application's variables and code, and step through theCiteste tot ... 3193 cuvinte
Dimensiune medie + cu poze |
|
|
The CLR and Threads
The CLR and Threads The CLR was designed with the aim of creating a managed code environment offering various services such as compilation, garbage collection, memory management, and, as we'll see, thread pooling to applications targeted at theCiteste tot ... 984 cuvinte
Dimensiune mica - fara poza |
|
|
The TryEnter() Method
The TryEnter() Method The TryEnter() method of the Monitor class is similar to the Enter() method in that it tries to acquire an exclusive lock on an object. However, it does not block like the Enter() method. If the thread enters succesCiteste tot ... 251 cuvinte
Dimensiune mica - fara poza |
|
|
Defining Threads - Single-Threaded Processes
Defining Threads Overview Threading is the ability of a development framework to spin off parts of an application into 'threads', which run out of step with the rest of the program. In most programming languages, you have the eCiteste tot ... 5999 cuvinte
Dimensiune mare + cu imagini |
|
|
The Wait() and Pulse() Mechanism
The Wait() and Pulse() Mechanism The Wait() and Pulse() mechanism is used for interaction between threads. When a Wait() method is issued on an object, the thread that is accessing that object waits until it gets a signal to wake up. TheCiteste tot ... 552 cuvinte
Dimensiune mica - fara poza |
|
|
Pipeline Thread Model
Pipeline Thread Model The Pipeline thread model is based on a series of tasks, each of which depends on the previous task. Have a look at Figure 5 which illustrates the situation: Figure 5 In the figure above, the main thCiteste tot ... 408 cuvinte
Dimensiune mica + cu imagini |
|
|
The ReaderWriterLock Class
The ReaderWriterLock Class A ReaderWriterLock defines the lock that implements single-writer and multiple-reader semantics. This class is popularly used in file operations where the file can be read by multiple threads but can be updatedCiteste tot ... 1117 cuvinte
Dimensiune mica - fara poza |
|
|
Alarm Clock Specifications soft - script
Alarm Clock Specifications 1. Requirements The clock displays the time in 24 hour notation. The SET HH button allows changing the hour. The hour will advance with one unit every time the button is pressedCiteste tot ... 431 cuvinte
Dimensiune mica + cu imagini |
|
|
Constants - Integer constants
Constants 1. Integer constants The normal integral constants are obvious: things like 1, 1034 and so on. You can put l or L at the end of an integer constant to force it to be long. To make the constant unsigned, one of&nCiteste tot ... 1286 cuvinte
Dimensiune mica - fara poza |
|
|
Pointers to functions
Pointers to functions A useful technique is the ability to have pointers to functions. Their declaration is easy: write the declaration as it would be for the function, say int func(int a, float b); and simply put brackets around the name aCiteste tot ... 187 cuvinte
Dimensiune mica - fara poza |
|
|
Integral types
Integral types The real types were the easy ones. The rules for the integral types are more complicated, but still tolerable, and these rules really should be learnt. Fortunately, the only types used in C for routine data storage are the real anCiteste tot ... 1980 cuvinte
Dimensiune medie - fara imagini |
|
|
Arrays - Multidimensional arrays
Arrays Like other languages, C uses arrays as a way of describing a collection of variables with identical properties. The group has a single name for all of the members, with the individual members being selected by an index. Here's an array bCiteste tot ... 725 cuvinte
Dimensiune mica + cu imagini |
|
|
Pointers - Declaring pointers, Arrays and pointers
Pointers Using pointers is a bit like riding a bicycle. Just when you think that you'll never understand them—suddenly you do! Once learned the trick is hard to forget. There's no real magic to pointers, and a lot of readers will already be famCiteste tot ... 3838 cuvinte
Dimensiune medie + cu poze |
|
|
Declaration of variables
Declaration of variables You may remember that in Chapter 1 we said that you have to declare the names of things before you can use them (the only exceptions to this rule are the names of functions returning int, because they are declaredCiteste tot ... 316 cuvinte
Dimensiune mica - fara poza |
|
|
Expressions and arithmetic - Conversions, Operators
Expressions and arithmetic Expressions in C can get rather complicated because of the number of different types and operators that can be mixed together. This section explains what happens, but can get deep at times. You may need to re-read it oCiteste tot ... 6950 cuvinte
Dimensiune mare - fara imagini |
|
|
Unions
Unions Unions don't take long to explain. They are the same as structures, except that, where you would have written struct before, now you write union. Everything works the same way, but with one big exception. In a structure, the members areCiteste tot ... 555 cuvinte
Dimensiune mica - fara poza |
|
|
Declarations, Definitions and Accessibility - Storage class specifiers
Declarations, Definitions and Accessibility Chapter 4 introduced the concepts of scope and linkage, showing how they can be combined to control the accessibility of things throughout a program. We deliberately gave a vague description ofCiteste tot ... 2904 cuvinte
Dimensiune medie + cu poze |
|
|
Strange operators
Strange operators There are two operators left to mention which look decidedly odd. They aren't ‘essential’, but from time to time do have their uses. Don't ignore them completely. This is the only place where we describe them, so our descriptioCiteste tot ... 694 cuvinte
Dimensiune mica - fara poza |
|
|
The Textual Structure of Programs
The Textual Structure of Programs 1. Program Layout The examples so far have used the sort of indentation and line layout that is common in languages belonging to the same family as C. They are ‘free format’ languages and you are exCiteste tot ... 654 cuvinte
Dimensiune mica - fara poza |
|
|
Alte pagini