Modern Multithreading
Home > Computing and Information Technology > Computer programming / software engineering > Modern Multithreading: Implementing, Testing, and Debugging Multithreaded Java and C++/Pthreads/Win32 Programs
Modern Multithreading: Implementing, Testing, and Debugging Multithreaded Java and C++/Pthreads/Win32 Programs

Modern Multithreading: Implementing, Testing, and Debugging Multithreaded Java and C++/Pthreads/Win32 Programs

|
     0     
5
4
3
2
1




International Edition


About the Book

Master the essentials of concurrent programming,including testing and debugging This textbook examines languages and libraries for multithreaded programming. Readers learn how to create threads in Java and C++, and develop essential concurrent programming and problem-solving skills. Moreover, the textbook sets itself apart from other comparable works by helping readers to become proficient in key testing and debugging techniques. Among the topics covered, readers are introduced to the relevant aspects of Java, the POSIX Pthreads library, and the Windows Win32 Applications Programming Interface. The authors have developed and fine-tuned this book through the concurrent programming courses they have taught for the past twenty years. The material, which emphasizes practical tools and techniques to solve concurrent programming problems, includes original results from the authors' research. Chapters include: * Introduction to concurrent programming * The critical section problem * Semaphores and locks * Monitors * Message-passing * Message-passing in distributed programs * Testing and debugging concurrent programs As an aid to both students and instructors, class libraries have been implemented to provide working examples of all the material that is covered. These libraries and the testing techniques they support can be used to assess student-written programs. Each chapter includes exercises that build skills in program writing and help ensure that readers have mastered the chapter's key concepts. The source code for all the listings in the text and for the synchronization libraries is also provided, as well as startup files and test cases for the exercises. This textbook is designed for upper-level undergraduates and graduate students in computer science. With its abundance of practical material and inclusion of working code, coupled with an emphasis on testing and debugging, it is also a highly useful reference for practicing programmers.

Table of Contents:
Preface. 1 Introduction to Concurrent Programming. 1.1 Processes and Threads: An Operating System’s View. 1.2 Advantages of Multithreading. 1.3 Threads in Java. 1.4 Threads in Win32. 1.5 Pthreads. 1.6 C++ Thread Class. 1.7 Thread Communication. 1.8 Testing and Debugging Multithreaded Programs. 1.9 Thread Synchronization. Further Reading. References. Exercises. 2 The Critical Section Problem. 2.1 Software Solutions to the Two-Thread Critical Section Problem. 2.2 Ticket-Based Solutions to the n-Thread Critical Section Problem. 2.3 Hardware Solutions to the n-Thread Critical Section Problem. 2.4 Deadlock, Livelock, and Starvation. 2.5 Tracing and Replay for Shared Variables. 2.5.6 Note on Shared Memory Consistency. Further Reading. References. Exercises. 3 Semaphores and Locks. 3.1 Counting Semaphores. 3.2 Using Semaphores. 3.3 Binary Semaphores and Locks. 3.4 Implementing Semaphores. 3.5 Semaphore-Based Solutions to Concurrent Programming Problems. 3.6 Semaphores and Locks in Java. 3.7 Semaphores and Locks in Win32. 3.7.6 Example: C++/Win32 Bounded Buffer. 3.8 Semaphores and Locks in Pthreads. 3.9 Another Note on Shared Memory Consistency. 3.10 Tracing, Testing, and Replay for Semaphores and Locks. Further Reading. References. Exercises. 4 Monitors. 4.1 Definition of Monitors. 4.2 Monitor-Based Solutions to Concurrent Programming Problems. 4.3 Monitors in Java. 4.4 Monitors in Pthreads. 4.5 Signaling Disciplines. 4.6 Using Semaphores to Implement Monitors. 4.7 Monitor Toolbox for Java. 4.8 Monitor Toolbox for Win32/C++/Pthreads. 4.9 Nested Monitor Calls. 4.10 Tracing and Replay for Monitors. 4.11 Testing Monitor-Based Programs. Further Reading. References. Exercises. 5 Message Passing. 5.1 Channel Objects. 5.2 Rendezvous. 5.3 Selective Wait. 5.4 Message-Based Solutions to Concurrent Programming Problems. 5.5 Tracing, Testing, and Replay for Message-Passing Programs. Further Reading. References. Exercises. 6 Message Passing in Distributed Programs. 6.1 TCP Sockets. 6.3 Timestamps and Event Ordering. 6.4 Message-Based Solutions to Distributed Programming Problems. 6.5 Testing and Debugging Distributed Programs. Programs. Further Reading. References. Exercises. 7 Testing and Debugging Concurrent Programs. 7.1 Synchronization Sequences of Concurrent Programs. 7.2 Paths of Concurrent Programs. 7.3 Definitions of Correctness and Faults for Concurrent Programs. 7.4 Approaches to Testing Concurrent Programs. 7.5 Reachability Testing. Further Reading. References. Exercises. Index.


Best Sellers


Product Details
  • ISBN-13: 9780471725046
  • Publisher: John Wiley & Sons Inc
  • Binding: Paperback
  • Language: English
  • Returnable: N
  • Spine Width: 24 mm
  • Weight: 711 gr
  • ISBN-10: 0471725048
  • Publisher Date: 11 Nov 2005
  • Height: 237 mm
  • No of Pages: 480
  • Returnable: N
  • Sub Title: Implementing, Testing, and Debugging Multithreaded Java and C++/Pthreads/Win32 Programs
  • Width: 158 mm


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Modern Multithreading: Implementing, Testing, and Debugging Multithreaded Java and C++/Pthreads/Win32 Programs
John Wiley & Sons Inc -
Modern Multithreading: Implementing, Testing, and Debugging Multithreaded Java and C++/Pthreads/Win32 Programs
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Modern Multithreading: Implementing, Testing, and Debugging Multithreaded Java and C++/Pthreads/Win32 Programs

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!