![]() |
|
[Java] parallel processing thread - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Java] parallel processing thread (/showthread.php?tid=5956472) |
parallel processing thread - blackcoder00 - Apr 3, 2019 nothing display when i run my code idk why 🤮 some one help me ? Quote:Error Message : ![]() ![]()
RE: parallel processing thread - lockhead - Apr 3, 2019 I think you have to implement the run method like so: Code // Java code for thread creation by extending RE: parallel processing thread - 802.1X - Apr 3, 2019 Seems like you've created a class called "mythread", which has a method called runz(). When you go back to your "main" class you create the object "mythread" but you call function start(), instead of runz(). RE: parallel processing thread - Caliban - Apr 30, 2019 (Apr 3, 2019 10:01 AM)Kazzok Wrote: Seems like you've created a class called "mythread", which has a method called runz(). His class extends Thread so it already has the method start(), which calls run() @OP you simply need to use the same name of the method you want to override, so run() not runz() |