in Technology by
Can we call the run() method instead of start()?

1 Answer

0 votes
by

Yes, calling run() method directly is valid, but it will not work as a thread instead it will work as a normal object. There will not be context-switching between the threads. When we call the start() method, it internally calls the run() method, which creates a new stack for a thread while directly calling the run() will not create a new stack.

Related questions

0 votes
    Can we use JSON instead of YAML while developing docker-compose file in Docker?...
asked Jun 21, 2021 in Technology by JackTerrance
0 votes
    Trying to implement OCR in the bank environment but the challenge is, we don't have access to an internet connection ... in our bank. Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    What functions are performed by the control unit? Can we call it the control centre of computer system? Why? Select the correct answer from above options...
asked Dec 23, 2021 in Education by JackTerrance
0 votes
    What functions are performed by the control unit? Can we call it the control centre of computer system? Why? Select the correct answer from above options...
asked Dec 23, 2021 in Education by JackTerrance
0 votes
    How can you call a controller method from JavaScript?...
asked Nov 11, 2020 in Technology by JackTerrance
0 votes
    How can we start using Jenkins from the command line?...
asked Oct 1, 2021 in Technology by JackTerrance
0 votes
    How to define a pipeline to not run between its start and end time? (1)isPaused: false (2)isPaused: true (3)is paused: true (4)is paused: false...
asked Sep 1, 2021 in Technology by JackTerrance
0 votes
    What are the purposes of up, run, and start commands of docker compose?...
asked Jun 20, 2021 in Technology by JackTerrance
0 votes
    What is the easiest way to call a web service from Excel (I am using version 2002)? Please, no ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 21, 2022 in Education by JackTerrance
0 votes
    What is the easiest way to call a web service from Excel (I am using version 2002)? Please, no ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
0 votes
    Which method to use while working with XML fragments, instead of XML()? (a) XMLInterface() (b) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    How can we run a selected test from a group of tests in Cucumber?...
asked Jul 22, 2021 in Technology by JackTerrance
0 votes
    Can we run Seam with JDK 1.4 and earlier?...
asked Jun 6, 2021 in Technology by JackTerrance
0 votes
    Can we run Seam in a J2EE environment?...
asked Jun 6, 2021 in Technology by JackTerrance
...