I
I
Igor Petrov2011-11-12 20:08:39
Java
Igor Petrov, 2011-11-12 20:08:39

What to tell about multithreading in Java

Hello!
I'm getting ready for a small presentation of the type "to students from students" on the topic of multithreading in Java.
I sketched a short list of topics covered:

  1. What are streams
  2. Creating Threads
  3. Start and stop
  4. Suspend and resume
  5. Planning
  6. Priorities
  7. daemon threads
  8. Examples and possible problems

What else could you add? What to pay attention to? At the moment I am choosing the code that I will show, but something is still “not right”. I look forward to your comments.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
Maxim, 2011-11-12
Bogovick @maxBogovick

I think it will be very interesting and you need to talk about multithreading to the connection pool, for example, about how safe it is to use Connection and Statement simultaneously from several threads in the JDBC driver. Here for example

O
osby, 2011-11-12
@osby

On point 8, you can mention the event dispatching thread and related problems of Swing (SwingWorker) as examples and problems.

1
1nd1go, 2011-11-12
@1nd1go

Double check locking and why it should work that way.

H
Hitory, 2011-11-13
@Hitory

You can compare the work of two algorithms - one uses threads and synchronization, and the second Atomic classes, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question