Delphi Event-based and Asynchronous Programming

دانلود کتاب Delphi Event-based and Asynchronous Programming

39000 تومان موجود

کتاب برنامه نویسی ناهمزمان و مبتنی بر رویداد دلفی نسخه زبان اصلی

دانلود کتاب برنامه نویسی ناهمزمان و مبتنی بر رویداد دلفی بعد از پرداخت مقدور خواهد بود
توضیحات کتاب در بخش جزئیات آمده است و می توانید موارد را مشاهده فرمایید


این کتاب نسخه اصلی می باشد و به زبان فارسی نیست.


امتیاز شما به این کتاب (حداقل 1 و حداکثر 5):

امتیاز کاربران به این کتاب:        تعداد رای دهنده ها: 9


توضیحاتی در مورد کتاب Delphi Event-based and Asynchronous Programming

نام کتاب : Delphi Event-based and Asynchronous Programming
عنوان ترجمه شده به فارسی : برنامه نویسی ناهمزمان و مبتنی بر رویداد دلفی
سری :
نویسندگان : ,
ناشر :
سال نشر : 2021
تعداد صفحات : 291
ISBN (شابک) : 9798705971688
زبان کتاب : English
فرمت کتاب : pdf
حجم کتاب : 5 مگابایت



بعد از تکمیل فرایند پرداخت لینک دانلود کتاب ارائه خواهد شد. درصورت ثبت نام و ورود به حساب کاربری خود قادر خواهید بود لیست کتاب های خریداری شده را مشاهده فرمایید.


فهرست مطالب :


Introduction
Acknowledgements
Code
Part 1. The Loop
Hidden complexity
Peeking at the console
Main event loop
Event-based programming
Pushmi-pullyu
When does pushing happen?
What about polling?
Game loop
Part 2. Messaging Systems
Windows Messaging System
Windows Message Queue
Posting and sending messages
Message priority
Custom messages
Windows Messaging System in VCL
Window recreation
Window for non-visual components
Message handler inheritance
Custom messaging systems and patterns
System.Messaging
Part 3. Life, the Universe, and Everything
Life, the Universe, and Everything
Automatic memory management
Interfaces
Mixing object and interface references
Storing an instance reference in a object reference
Constructing an instance without assignment to any reference
In-place construction in a const parameter
Using an inline variable with type inference
Interfaces and generics
Class helpers
Where class helpers help?
Interfaces don\'t have helpers
Generics don\'t have helpers
Anonymous methods and lambdas
What exactly is an anonymous method?
What is it good for?
How are anonymous methods implemented?
Anonymous method variable capture
Capturing and loops
Anonymous method reference cycles
Using weak references to break anonymous method reference cycles
Part 4. Asynchronous Programming and Multithreading
Asynchronous programming and multithreading
Making the first dive…
Application.ProcessMessages
Application.ProcessMessages reentrancy problem
Moving long operations to a background thread
Using an anonymous thread
Extending the TThread class
Thread reentrancy
OnTerminate event handler
Handling thread exceptions
Canceling the task
Passing the data
Pitfalls
Asynchronous message dialog
Tasks
Thread pool
Managing task lifetime
Waiting for task
Handling task exceptions
Canceling the task
Passing the data
Parallel Join & For
Task continuation
Back to the Future
What is a future
There is no Future like your own Future
Generic approach to future
TValue approach to future
Part 5. Thread safety
What is thread safety anyway?
Wrong assumptions
Working example of thread-unsafe code
The importance of thread safety
Achieving thread safety
General thread safety considerations
Memory allocation and deallocation
Object construction and destruction
Assignment thread safety
What does atomic mean?
Atomic does not imply thread-safe
Reference assignments
Use immutable data
Avoiding shared data
Use only local data
Use thread-local data
Initialization pattern
Protecting shared data
Synchronization primitives (objects)
Thread synchronization
Locks
No lock
Recursive lock
Exclusive lock
Readers-writer or multi-reader lock
Spinlocks
Monitor
Events
Atomic (interlocked) operations
Part 6. GUI and Multithreading
Main (GUI) thread
Communicating with the main thread
Synchronization with the main thread
Updating UI after the task is completed
Updating progress counter or description
Iteratively creating and populating GUI controls while task is running
Speeding up GUI controls
Using messaging systems
Using System.Messaging
Using a thread-safe messaging system
Communication and GUI issues
Deadlocking the main thread
Deadlock with two shared resources
Deadlock with shared resource and Synchronize
Deadlock with waiting for a thread and Synchronize
Cleanup on GUI destruction
Don\'t destroy the GUI
Use guardian interface to prevent access to destroyed GUI
Using messaging systems
Waiting for a thread
Final notes
Appendix
References
Quality Portal Reports




پست ها تصادفی