As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I was reading this article on Java Threads: http://java.sun.com/docs/books/jls/second_edition/html/memory.doc.html, which I think is must read for any Java developer. What are the other must read articles about Java Threads or threads in general?
I found the book Java Concurrency in Practice a good resource. It teaches you everything you need to know about threads and concurrency in Java. I highly recommend it.
http://linux.die.net/man/7/pthreads + do implement something
You may find article Java Thread Gate Pattern useful.
For Java Threading,
Java Concurreny in Practice.
Taming Java Threads
I find articles in IBM developer works very well written. Try search 'thread' in that site:
http://www.ibm.com/developerworks/views/java/libraryview.jsp?sort_by=&show_abstract=true&show_all=&search_flag=&contentarea_by=Java+technology&search_by=thread&topic_by=-1&industry_by=-1&type_by=All+Types&ibm-search=Search
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I am trying to a get a general grasp of a wide variety of different languages. Where is a good place to start learning? I would like to learn php, java, html, css, javascript.
I have been to w3schools http://www.w3schools.com
Are there any other great websites?
Some of the sites where you can learn java are :
mkyong itself and links provided on this site.
I would definitely try Codecademy http://www.codecademy.com. its free and they have great examples that you can work through.
Read books! There's a lot of computer related book at Indigo. I think they are good, because it comes with example and it explains well
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I don't know much of either languages, but what would be better for writing applications that deals with the following. Right now, I use PHP, but I'm looking to see what would be the next ideal language to dig into, if the needs arise.
MySQL
off-line data processing of CSV, XML, etc. files
web applications (dynamic websites)
I understand that this could quite possibly be subjective.. so if you could just pitch in some pros and cons, that would be superb. TIA!
If you come from PHP, JAVA is probably a bit easier than C++ for you.
If you are looking to make dynamic websites with a programming language you should look into C#
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Can u suggest some articles or books about JVM internals: how it allocates memory, handles object inheritance, garbage collection, how it executes byte code and so on.
You might have a look at "Inside the JVM". Unfortunately I'm not aware of the existence of any new books on the subject.
Cliff Click did a great Google talk earlier this year on the things that a JVM does. It's certainly not everything that you'd need, but is a really great starting point:
http://www.youtube.com/watch?v=uL2D3qzHtqY&feature=player_embedded
I'd also add that if you don't already understand bytecode, then that's going to be pretty useful:
http://arhipov.blogspot.com/2011/01/java-bytecode-fundamentals.html
Have a look at "The Java Virtual Machine Specification": http://java.sun.com/docs/books/jvms/
Also helpfull: The Hotspot wiki OpenJDK wiki
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I've been trying to explain Java threading to a colleague who has never been exposed to multi-threaded applications, but apparently I'm not a very good teacher.
Can anyone recommend a good online or offline resource that can explain threading in a simple, step-by-step manner? I know it's a complex topic, but surely there exists an article, book, or other explanation that can result in an "Aha! I get it, finally!" moment.
Take a look at the Concurrency lesson in Sun's Java Tutorials. It's kind of big, but it's broken up nicely.
I would point him in the direction of the official tutorial, where this subject is discussed here.
It was the official java tutorial that got me started, and I'm not even a serious Java developer...
apart from the offical sun tutorial you may check these out
http://www.devshed.com/c/a/Java/The-Basics-of-Multiple-Threads-in-Java/
http://www.javabeginner.com/learn-java/java-threads-tutorial
Here is an old but good one, got me the Aha, I get it effect
http://www.javaworld.com/javaworld/jw-04-1996/jw-04-threads.html
After the simple tutorials, I strongly recommend getting Brian Goetz's book "Java Concurrency in Practice" if the colleague might pursue multi-threaded programming.
If you're using Swing also check SwingWorker:
http://java.sun.com/docs/books/tutorial/uiswing/concurrency/worker.html
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am looking for a Dataflow / Concurrent Programming API for Java.
I know there's DataRush, but it's not free. What I'm interested in specifically is multicore data processing, and not distributed, which rules out MapReduce or Hadoop.
Any thoughts?
Thanks,
Rollo
You might try gpars; it apparently has implementations of data flow variables and streams in Java even though it is geared towards providing concurrent programming goodies for Groovy.
Might try the upcoming fork/join library which will (hopefully) be in Java 7 as part of the JSR 166y update.
Main project page:
- http://gee.cs.oswego.edu/dl/concurrency-interest/index.html
Pointers to lots of links about what it is:
- http://tech.puredanger.com/java7#jsr166
Does the built in Java concurrent package meet your needs? It's a very nice package, built in ThreadPools, CopyOnWriteCollections, Executors, Future. We use it to process large volumns of data in thread pools.
https://github.com/rfqu/df4j is simple but powerful dataflow library. If it lacks some desired features, they can be added easly. It can exploit java.concurrent.ExecutorService.