This week you will not need to submit your solutions.

  • Open the IntelliJ IDE
  • Choose Check out from Version Control -> git in the welcome window, or choose VCS -> Check out from Version Control -> git
    • Enter the git URL: https://github.com/cs2113f18/template-j-7.git
    • Keep hitting “Next” or “Yes” until it opens a new window with the project you cloned.
    • Note: Always use one of the two options listed above. Do NOT try to do File->New… It won’t work correctly!
  • The full slides are available here

Objectives

  • To understand how threads allow a program to multi-task
  • To use threads for networking to prevent the program from blocking when trying to receive messages

Threads in Java

Networking Threads


Previous - Next

© 2003, Rahul Simha (revised 2017). Further revised by Tim Wood 2018.