🗊 Презентация Multithreading. User Group’s Web Site

Нажмите для полного просмотра!
Multithreading. User Group’s Web Site, слайд №1 Multithreading. User Group’s Web Site, слайд №2 Multithreading. User Group’s Web Site, слайд №3 Multithreading. User Group’s Web Site, слайд №4 Multithreading. User Group’s Web Site, слайд №5 Multithreading. User Group’s Web Site, слайд №6 Multithreading. User Group’s Web Site, слайд №7 Multithreading. User Group’s Web Site, слайд №8 Multithreading. User Group’s Web Site, слайд №9 Multithreading. User Group’s Web Site, слайд №10 Multithreading. User Group’s Web Site, слайд №11 Multithreading. User Group’s Web Site, слайд №12 Multithreading. User Group’s Web Site, слайд №13

Вы можете ознакомиться и скачать презентацию на тему Multithreading. User Group’s Web Site. Доклад-сообщение содержит 13 слайдов. Презентации для любого класса можно скачать бесплатно. Если материал и наш сайт презентаций Mypresentation Вам понравились – поделитесь им с друзьями с помощью социальных кнопок и добавьте в закладки в своем браузере.

Слайды и текст этой презентации


Слайд 1


Upcoming Presentations
Описание слайда:
Upcoming Presentations

Слайд 2


User Group’s Web Site New web site for the user group. Bunch of new features List of latest news and events Details of upcoming presentations Code...
Описание слайда:
User Group’s Web Site New web site for the user group. Bunch of new features List of latest news and events Details of upcoming presentations Code Zone – code download area Presentations submitted by the user group’s members Threaded discussion lists. The more you use it, the better it gets  Volunteers needed to provide content. Send email to farhan@ilmlearning.com

Слайд 3


Attend Get.NET! For Free Drawing for a free Get.NET! seminar Remember to turn-in your evaluation form Drawing will be conducted after the...
Описание слайда:
Attend Get.NET! For Free Drawing for a free Get.NET! seminar Remember to turn-in your evaluation form Drawing will be conducted after the presentation One lucky person will walk away with free registration to the Get.NET! seminar on March 6th Everyone else gets a 25% discount by using the coupon code “tcnug” during registration

Слайд 4


Multi Threading What is multi threaded programming Allows you to run several sections of your code simultaneously On a single CPU machine Operating...
Описание слайда:
Multi Threading What is multi threaded programming Allows you to run several sections of your code simultaneously On a single CPU machine Operating system balances the use of processor among all threads Operating system simulates parallel processing by constantly switching between threads

Слайд 5


Multi Threading When to use multi threading ? When you need to quickly respond to users’ interactions You can leverage .NET Remoting or ASP.NET web...
Описание слайда:
Multi Threading When to use multi threading ? When you need to quickly respond to users’ interactions You can leverage .NET Remoting or ASP.NET web service to distribute processing load to multiple computers Consider multi threading when you need to process several independent transactions

Слайд 6


Multi Threading Meet Minne-500 Simple car racing game. An old car “Oldie” races with a new car “newbie” Shows multi-threaded programming Change...
Описание слайда:
Multi Threading Meet Minne-500 Simple car racing game. An old car “Oldie” races with a new car “newbie” Shows multi-threaded programming Change thread priorities and watch its effect

Слайд 7


Multi Threading Considerations while using multiple threads Creates memory overhead because the context for each thread needs to be saved separately...
Описание слайда:
Multi Threading Considerations while using multiple threads Creates memory overhead because the context for each thread needs to be saved separately Creates more work for the processor because it needs to switch frequently between multiple threads of execution Can slow down your application if operated in a single processor environment Multi threading works best in parallel processor systems, or in a distributed computing environment

Слайд 8


Multi Threading Creating threads Using ThreadPool class Contained inside System.Threading namespace Only contains static methods By default, contains...
Описание слайда:
Multi Threading Creating threads Using ThreadPool class Contained inside System.Threading namespace Only contains static methods By default, contains a pool of 25 threads Processing can not be aborted after its started Can not set priority on the thread Use “QueueUserWorkItem” method to start parallel processing “QueueUserWorkItem” receives a “WaitCallBack” delegate. “WaitCallBack” delegate receives an object as a parameter, which can be used to pass state info.

Слайд 9


Multi Threading Creating threads Creating custom threads Threads are created by instantiating Thread class Contained in System.Threading namespace...
Описание слайда:
Multi Threading Creating threads Creating custom threads Threads are created by instantiating Thread class Contained in System.Threading namespace Complete control over prioritizing, aborting threads. Thread class receives a “ThreadStart” delegate as a parameter to the constructor “ThreadStart” delegate does not receive any parameter and does not return any value

Слайд 10


Multi Threading Starting a thread Use the Start method of the Thread class to start its execution Stopping a thread Use the Abort method of the...
Описание слайда:
Multi Threading Starting a thread Use the Start method of the Thread class to start its execution Stopping a thread Use the Abort method of the Thread class to stop its execution Handling thread abortion When a thread is aborted, .NET runtime throws “ThreadAbortException” This exception can be handled to perform any necessary cleanup

Слайд 11


Multi Threading Suspending a thread Use the “Suspend” method of the Thread class to halt its execution. Its like pushing the pause button on VCR....
Описание слайда:
Multi Threading Suspending a thread Use the “Suspend” method of the Thread class to halt its execution. Its like pushing the pause button on VCR. Resuming a thread Use the “Resume method of the Thread to resume its execution. Sleeping a thread Use the static method “Sleep” of the Thread class to cause the thread to become dormant for a specified period of time.

Слайд 12


Multi Threading Waiting for another thread Use the “Join” method of the Thread class to specify that you intend to wait for another thread to finish...
Описание слайда:
Multi Threading Waiting for another thread Use the “Join” method of the Thread class to specify that you intend to wait for another thread to finish running. Synchronizing threads Meet the “Thread Pull”, designed to simulate multiple threads working together Use Interlocked class for simple increment and decrement operations Use “lock” keyword to synchronize access to a code block. This keyword will cause all threads accessing the code block to queue up and execute in a sequence

Слайд 13


Multi Threading Synchronizing threads Using Monitor Use the “Wait” method of the Monitor class to suspend a thread until another event occurs in the...
Описание слайда:
Multi Threading Synchronizing threads Using Monitor Use the “Wait” method of the Monitor class to suspend a thread until another event occurs in the system. Use the “Pulse” or “PulseAll” method of the Monitor class to activate thread(s) sitting in wait mode.



Похожие презентации
Mypresentation.ru
Загрузить презентацию