aspose file tools*
The moose likes Threads and Synchronization and the fly likes To the authors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "To the authors" Watch "To the authors" New topic
Author

To the authors

Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
How much coverage does unit testing multi-threaded programs receive in the book?
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18896
    
  40

Originally posted by Nigel Browne:
How much coverage does unit testing multi-threaded programs receive in the book?


Quite frankly, we did not cover unit testing of multithreaded programs.

I actually had the pleasure to work with a team devoted to testing years ago. To me, the skill was probably more of an art -- especially when it comes to system and load testing. I am not sure if we can do testing of threads better than a testing book discussion of threads.

To everyone else, if you feel that this is important, let me know here... we can have a discussion on what features you would like to see included.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Originally posted by Henry Wong:
To everyone else, if you feel that this is important, let me know here... we can have a discussion on what features you would like to see included.


Will you add this in the next edition of the book, if there are considerable amount of people interesting in unit testing issue of threads? :roll:


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
Originally posted by Henry Wong:

To everyone else, if you feel that this is important, let me know here... we can have a discussion on what features you would like to see included.

Henry


This would be indeed an interesting topic. Maybe we can continue it .

./pope


blog - InfoQ.com
Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
Originally posted by Henry Wong:

I am not sure if we can do testing of threads better than a testing book discussion of threads.

Henry


I think that a discussion of the issues involved in testing threads and the common pitfalls would be useful.
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18896
    
  40

Here is a bit of history... During the development of the first edition, I wanted to put in a section on Debugging. It didn't make the cut. 7 years later, with the 3rd edition, debugging still didn't make the cut...

Why? there were too many issues... Back then, java debugging was too immature. With the 3rd edition, we just couldn't get it to work as a chapter. It was either too specific to a particular tool, or there were just not enough "practical" information to be useful. We even considered writing support classes, but... it never came together.

Anyway, something tells me, testing may have the same problem. It may be too specific to a particular tool, or just too obscure to most readers that it may be better done for a testing book. In any case, I may be wrong, so please keep adding your suggestions here.

Henry
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
I have read in the last weeks some articles on testing threads with mock objects. Maybe I will get my minds up and post here the links .

./pope
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Originally posted by Henry Wong:
Anyway, something tells me, testing may have the same problem. It may be too specific to a particular tool, or just too obscure to most readers that it may be better done for a testing book. In any case, I may be wrong, so please keep adding your suggestions here.


Even though we need to stick into a particular tool, the book may just discuss about famous tools like JUnit and so on... But testing books may not emphasize solely on threading issue... Your book might get more advantages on it...

Just my suggestion...
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
Henry I was asking about this because I thought you might have some interesting proposals, as the ones I've quoted (in fact till now I cannot find out the links for testing multithreading using mock).

./pope
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18896
    
  40

BTW, I didn't mean for this topic to sound somewhat negative. It isn't. Both debugging and testing are now on my official to-do list for the next edition. I still can't guarantee either will make the cut, but I'll try...

Henry
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: To the authors