KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a multi-threaded Java program with a bunch of rules around threading: For example, code in class A should only be called from the UI thread; 3 methods in class B must be called only from the network thread, etc. Any suggestions on how to do assertions or other code checks that these rules are being followed? I'd like to do the equivalent of testing for "invariants" to prevent coding errors on thread usage.
Tags (comma-separated)
Save Edits
Cancel