Winston Gutkowski wrote:
Benjamin Scabbia wrote:It prints 0..9 - why?
Because:is precisely equivalent to:apart from the fact that, in the second case, i is defined outside the loop.
Now, looking at that second loop, would it make any difference if it was ++i instead of i++?
HIH
Winston
Peter Rooke wrote:Two academic books we used many years ago;
Introduction to Database Systems - CJ Date
Fundamentals of Database Systems
That's a look to learn - good luck!
Joanne Neal wrote:
Benjamin Scabbia wrote:no idea how you found this little gem!
I think it was originally offerred as a course on Coursera. If you haven't come across this site yet, it's well worth a browse, as is Udacity
Joanne Neal wrote:
Benjamin Scabbia wrote:Also +1 for the list of books! I will spend the evening evaluating my choices and purchase something in the next couple of days
If you prefer listening and watching to reading (and don't want to spend any money), this course from Stanford University is a great introduction to databases.
Campbell Ritchie wrote:I am a bit surprised they will let you do Advanced Databases without doing Basic Databases first.
K. Tsang wrote:MSCS for non-CS? Is that really possible?
Anyway undergrad database course will cover material like SQL, ER modeling, logical/physical design, normalization, security and transaction management.
So I suggest you pick up any database management books and have a glance.
Yet I believe you should need drill on SQL quite a bit. Head First SQL here is probably a good choice for beginners. It should give some grounds in those areas.
Campbell Ritchie wrote:I am a bit surprised they will let you do Advanced Databases without doing Basic Databases first.
Try this part of the Java Tutorials for a start. Look in our books pages and you might find something useful there.
I shall move this discussion to a more appropriate location.
Paul Clapham wrote:You'd only need to concern yourself with the number of processors if your tasks were actually using processors. But accessing a web site is far from being compute-bound. To the contrary, it spends almost all of its time waiting for network traffic to complete. So the number of processors isn't relevant to the number of threads you should use.
Anyway, yes, the ExecutorService is the way to go. Your Processor class would find more links, so it would have to create new Processor objects for them and give them to your ExecutorService. You should experiment to see if the number of threads in the pool makes a difference; it may be that your operating system's TCP/IP stack throttles the number of threads it handles at once, for example.
Mike. J. Thompson wrote:
I would suggest using
That is functionally the same, but makes your intent clearer.
Bear Bibeault wrote:Hint: