
I am already has a digital camera, and now I am looking for digital photo frame. Well, I think many people have known this frame or maybe you already has one at your home. I like this frame because it’s more convenient and it looks beautiful at my home and my office. Beside that, it’s an ideal gift for any occasion. Whether celebrating a wedding, birthday party or any happy event, it’s the perfect present as well as a fantastic way to display and remember the occasion. The slideshow function of the frame as it is like having an endless number of pictures at once. And I finally get my digital photo frame at Digitalframez.com.au.
Read the rest of this entry »
Popularity: 11% [?]
For threads that are manually created via the Thread class, you can call the Join method to wait for a thread to finish. This works well when you need to wait for all threads to finish processing before an application terminates. Unfortunately, the thread pool threads do not have a Join method. You need to make sure that all threads in the thread pool have finished processing before another thread terminates or your application’s main thread terminates.
Use a combination of the ThreadPool methods — GetMaxThreads and GetAvailableThreads — to determine when the ThreadPool is finished processing the requests.
Read the rest of this entry »
Popularity: 15% [?]
Synchronizing the Reading and Writing of a Resource Efficiently
When you have a resource that is shared by multiple threads, you need to provide exclusive access to this resource when a thread is writing to it. However, you do not want the overhead of providing exclusive access to this resource when multiple threads are only reading from it. You want to allow one thread to access a shared resource only if it is writing to it, but you also want to allow multiple threads to read from this resource. While multiple threads can read from a resource, a write operation cannot occur while any thread is reading from this resource.
Example below uses the ReaderWriterLock class from the System.Threading. The ReaderWriterLock is optimized for scenarios where you have data that changes infrequently but needs protection for those times when it is updated in a multithreading scenario. To illustrate, the GradeBoard class represents a board where an instructor will post the grades students received from a class. Many students can read the grade board, but only the instructor can post a grade (write) to the grade board. Students will not, however, be able to read from the board while the instructor is updating it.
Read the rest of this entry »
Popularity: 14% [?]
The ThreadPool is a great way to perform background tasks without having to manage all aspects of the thread yourself. It can be handy to know when the ThreadPool itself is going to become a bottleneck to your application, and the GetAvailableThreads method can help you. However, you might want to check your application design if you are consistently using this many threads as you might be losing performance due to contention or context switching. Queuing up work when the ThreadPoolM is full simply queues it up for execution once one of the threads comes free; the request isn’t lost, just postponed.
In this example, your application will be creating many threads from the thread pool. When creating a thread from this pool, you want to be informed as to whether a thread in the pool is available or if none are available, and the request for a new thread will have to be queued. Basically, you want to know whether a thread is available for immediate use from the thread pool. Use the ThreadPool.GetAvailableThreads method to get the number of worker threads currently available in the ThreadPool to determine whether you should queue another request to launch another thread via ThreadPool.QueueUserWorkItem or take an alternate action. The Main method calls a method (SpawnManyThreads) to spawn lots of threads to do work in the ThreadPool, then waits for a bit to simulate processing.
Read the rest of this entry »
Popularity: 14% [?]
When using a System.Threading.Timers.Timer class, here are a few scenarios you may encounter:
There are two types of Timer classes in .NET Framework, one from System.Threading and another one from System.Windows.Forms. The former timer is enough to serve the earlier scenarios, but if you are doing UI work and want to use timers, you should investigate the System.Windows.Forms.Timer class. If you are doing server work, you might also want to look at System.Threading.Timers.Timer as well. Both of these classes add events for when the timers are disposed and when the timer “ticks”; they also add properties that expose the settings. Here we look at the Timer class of System.Threading.Timers sample codes.
Read the rest of this entry »
Popularity: 14% [?]
Encrypting the string will prevent users from being able to read and decipher the information. If you have a string you want to be able to encrypt and decrypt — perhaps a password or software key — which will be stored in some form accessible by users, such as in a file, the registry, or even a field, that may be open to attack from malicious code. The sample code in this article, CryptoString class, contains two static methods to encrypt and decrypt a string and two static properties to retrieve the generated key and inititialization vector (IV—a random number used as a starting point to encrypt data) after encryption has occurred.
This class uses the Rijndael algorithm to encrypt and decrypt a string. This algorithm is found in the System.Security.Cryptography.RijndaelManaged class. This algorithm requires a secret key and an initialization vector; both are byte arrays. A random secret key can be generated for you by calling the GenerateKey method on the RijndaelManaged class. This method accepts no parameters and returns void. The generated key is placed in the Key property of the RijndaelManaged class. The GenerateIV method generates a random initialization vector and places this vector in the IV property of the RijndaelManaged class.
Read the rest of this entry »
Popularity: 15% [?]

Do you difficult to find a suitable apartment for your family? Or maybe you just want to look an apartment near from your college? You come the right place. Houston Apartments provide you the large database of apartments for rent. You could find them by the address, college or military based. And also you can filter from the city or zip code, the state, the price you want, the keywords, and the bedrooms you need.
Read the rest of this entry »
Popularity: 14% [?]
Finger nail fungus is a condition when fungi get under the nail of your finger and the some infection in this area. This infection can cause your nail turning yellow, are you the one who disgusting with this condition? Embarrassing to show your nails to other people? Now what you need is doing some treatments for your nail.
Read the rest of this entry »
Popularity: 14% [?]