![]() ![]() The Java default implementation of clone() returns a shallow copy of the class. This is done by invoking the callback's clone() method. Recently, I saw a reply by IBM's Daniel Junglas on a CPLEX user forum that contained the following information.įor each thread CPLEX creates a clone of your callback object. ThreadLocal is my current first choice when writing a generic callback. In that previous post, I explored a few options for doing so, including use of Java's ThreadLocal class. A key element was that, with generic callbacks, IBM was making the user more responsible for thread safety. ![]() A while back, I wrote a post about the new (at the time) "generic" callbacks in CPLEX, including a brief discussion of adventures with multiple threads.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |