Has anyone a clue (goofing task) why i can not use the thread field we had to add to the TaskManipulator class but I need to create a Thread.currentThread() object inside the run method? If using the field the output is OK except fifth gets printed two times.
Another set of dreadful tasks.
My second one passed even though the output was miles out.
But no matter what I tried I couldn't get it to work as they wanted. Ended up copying an answer to see if they worked, and they didn't but when I hit submit it passed.
Truly terrible.
It would be very nice if CodeGym offered a better orientation on this Multithreading quest.
Some orientation, for exemple, of what to read about the Socket, ThreadPoolExecutor, RunnableFuture, and Callable topics. I googled and there's a lot of things, and I don't know exactly where to focus or how much of my time I should spend trying to understand those things instead of advancing through the lessons of this course.
I've read the Oracle documentation and some other articles about each of these classes and I still don't get what exactly is the connection and importance of it and the last task -- and Multithreading in general.
GO TO FULL VERSION