Assume I have a thread-safe collection of Things (call it a ThingList), and I want to add the following function.
As I understand, Java\'s Exception class is certainly not immutable (methods like initCause and setStackTrace give some clues about that). So is it at least thread-safe? Suppose one of my classes has
private synchronized Map<Team, StandingRow> calculateStanding() { System.out.println(\"Calculate standing for group \" + getName());
Is Apache Commons Exec a thread-safe开发者_高级运维 library?Unless the javadoc or other documentation claims that certain classes are thread-safe, you should assume that any library is not thread-safe
I am using Cache in a web service method like this: var pblDataList = (List<blabla>)HttpContext.Current.Cache.Get(\"pblDataList\");
I want to update a single datarow in a datatable using multiple threads. Is this actually possible? I\'ve written the following code implementing a simple multi-threading to update a s开发者_如何学Go
We are using AsyncTasks to access database tables and cursors. Unfortunately we are seeing occasional exceptions regarding the database being locked.
I\'m newbie to flex. I\'m trying to write a simple re-entrant lexer/scanner with flex. The lexer definition goes below. I get stuck with compilation errors as shown below (yyg issue):
Us开发者_运维问答ing a .NET TcpClient if I have called an asynchronous BeginRead() on the associated network stream can I still call Write() on that stream on another thread?
A byte stream should be transferred and there is one producer thread and a consumer one. Speed of producer is 开发者_运维知识库higher than consumer most of the time, and I need enough buffered data fo