REGISTER FREE to Receive Instant Job

Wednesday, 10 December 2014

Java Multithreading Interview Questions

What is the difference between Program & Process?

  • A program represents a set of instructions which are stored in a file. In order to execute a program various resources such as memory, I/O devices, processor etc. are required. When resources are allocated to a program it becomes process.
  • Multiprocessing is the facility of allocating resources to multiple programs.
  • A thread is an independent module of a process that can be concurrently executed with other threads.
  • The process of something to calling itself is known as recursion.
  • Facility of executing multiple concurrent threads is called multithreading.

Difference between multithreading and multiprocessing.

  1. Case 1: In Multiprocessing, each process represents an independent application whereas in Multithreading each thread represents an independent module in the application.
  2. Case 2: In case of Multiprocessing each process has its own address space whereas in case of Multithreading all the threads share a common address space.

What is relation between Java Threads and objects of Thread class?

For each thread an object of type Thread is created. This object is used to manage the Thread.

What is multithreading?

Multithreading is a process of executing multiple threads simultaneously. Its main advantage is:
  • Threads share the same address space.
  • Thread is lightweight.
  • Cost of communication between process is low.

What is the difference between preemptive scheduling and time slicing?

Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and then reenters the pool of ready tasks. The scheduler then determines which task should execute next, based on priority and other factors.

What does join() method?

The join() method waits for a thread to die. In other words, it causes the currently running threads to stop executing until the thread it joins with completes its task.

What is shutdown hook?

The shutdown hook is basically a thread i.e. invoked implicitely before JVM shuts down. So we can use it perform clean up resource.

What is the purpose of Synchronized block?


  • Synchronized block is used to lock an object for any shared resource.
  • Scope of synchronized block is smaller than the method.

100 comments:

  1. Hi Admin,
    Excellent blog and its totally loaded with valid posts on Java and .Net technology. Consider including RSS feed in your blog, so aspirants like me can follow your blog easily. Dot Net Training

    ReplyDelete
    Replies
    1. I have read your blog its very attractive and impressive. I like it your blog.

      Java Training in Chennai Core Java Training in Chennai Core Java Training in Chennai

      Java Online Training Java Online Training Core Java 8 Training in Chennai java 8 online training JavaEE Training in Chennai Java EE Training in Chennai

      Delete
    2. Java Training Institutes Java Training Institutes Java EE Training in Chennai Java EE Training in Chennai Java Spring Hibernate Training Institutes in Chennai J2EE Training Institutes in Chennai J2EE Training Institutes in Chennai Core Java Training Institutes in Chennai Core Java Training Institutes in Chennai

      Hibernate Online Training Hibernate Online Training Hibernate Training in Chennai Hibernate Training in Chennai Java Online Training Java Online Training Hibernate Training Institutes in ChennaiHibernate Training Institutes in Chennai

      Delete
  2. This is extremely helpful info!! Very good work. Everything is very interesting to learn and easy to undestood. Thank you for giving information.
    PHP Training in chennai | PHP Training chennai | PHP course in chennai | PHP course chennai

    ReplyDelete
  3. This is remarkably useful informatica training in chennai data!! Staggering work. Everything is particularly captivating to learn and simple to undestood. Grateful to you for giving data.

    ReplyDelete
  4. This is to an amazing degree satisfying Hadoop Training in Chennai information!! Exceptional work. Oracle Training in Chennai Everything is extraordinarily intriguing to learn and simple to undestood. Much appreciation to you for giving data.Hadoop Training in Chennai

    ReplyDelete
  5. These questions are really helpful for my interviews..To know more about Java and other concept Just press it
    Java Training in Chennai

    ReplyDelete
  6. Interesting and worth able content is discussed here. The fact about current technology is explicitly stated over here. I do agree on your thoughts on how the influencers are taking advantage over emerging technology. Thanks for sharing this in here. Keep bloging like this.

    Hadoop Training in Chennai | Best Hadoop Training in Chennai | Big data training in Chennai

    ReplyDelete
  7. Hi Admin,
    Excellent blog and its totally loaded with valid posts on Java and .Net technology. Consider including RSS feed in your blog, so aspirants like me can follow your blog easily. Dot Net Training in Chennai

    ReplyDelete
  8. Excellent Post, I welcome your interest about to post blogs. It will help many of them to update their skills in their interesting field.
    Regards, SAS Course in Chennai

    ReplyDelete
  9. This information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic.
    Regards,
    Informatica training in chennai|Best Informatica Training In Chennai|Informatica training center in Chennai

    ReplyDelete
  10. Great this type of article will be useful for those who are want to remind what they have learned or last minute glance.
    java training in chennai

    ReplyDelete
  11. Thanks for sharing this post.Really it's very useful for the candidates who are going for interviews.Interview training also provided by our trainer based on software courses what they learned.Software courses that we are provided in our institute are Java,Dotnet,PHP etc.We are recommended as best
    Java training in Chennai
    Dotnet training in Chennai
    PHP training in Chennai

    ReplyDelete
  12. Thanks for a great post of interview question and answers. its very helpful to all Hadoop training in Chennai
    Java training in Chennai

    ReplyDelete
  13. It is a great information.I read this blog and it is very easy to understandable way.Our hadoop training is real time and authorized training.to visit
    hadoop-training-in chennai

    ReplyDelete
  14. Thank you so much for sharing this unique and useful information with us. I gained more knowledge by reading your post. keep on blogging.!!
    Loadrunner Training in Chennai

    ReplyDelete
  15. It is really nice and informative.thanks for sharing the information.
    dot-net-training in chennai

    ReplyDelete
  16. Great information.Thanks for sharing this blog.Our java trainers are certified professionals with more real time experience in live projects.It is used to get placement assurance also to improve the career.
    Java Training in Chennai

    ReplyDelete
  17. Nice article. Very useful for the people who are moving into java technology. Join our Linux Open Stack Training in Chennai

    ReplyDelete
  18. Thanks for your great article post.You shared more informative and interesting article on java multhithreading concept.We are providing best Salesforce training course in our institute at reasonable price with placement support.The people who are interested to learn salesforce,can join in our institute.For more details reach us @Salesforce developer training in Chennai

    ReplyDelete
  19. This blog provide some useful question and answers in java. Multi threading concept in Java is very important one. the basic details of java multi threading are given in this blog. thanks for this.. continue like this blogging. Informatica Training in Chennai

    ReplyDelete
  20. This blog is very informative. The question and answers were very useful for the beginners to understand the conceptManual Testing Training in Chennai

    ReplyDelete
  21. This comment has been removed by the author.

    ReplyDelete
  22. Your blogs are very useful for beginners. Its easy to understand.Question answer are good tp undeAndroid Training in Chennairstand.

    ReplyDelete
  23. Your blog is really great. I like your post very much. This is really helpful for me in gaining my knowledge in HTML.

    Informatica Training in Chennai

    ReplyDelete
  24. the confused topics of java concept is explained clearly with the full detailed explanation. and also this is very easy to understand. differences of each are explained clearly. thank you for this site.

    VMWare Training in Chennai

    ReplyDelete
  25. It is really useful for me i am going for programming courses,it is useful



    sharepoint-developer-training in chennai

    ReplyDelete
  26. it is really useful for us .thanks for sharing the information.
    CCNA Training in Chennai

    ReplyDelete
  27. You have clearly explained about java multi threading.Its very useful for us to understand.Its clearly explained.
    Linux training in chennai

    ReplyDelete
  28. This interview questions about the java multi threading is really helpful for me.It is useful for all job searching people.
    Sharepoint Admin Training in Chennai

    ReplyDelete
  29. This blog is informative. java multi threading interview questiones helps the people to build their career ssas training in chennai

    ReplyDelete
  30. hi, most useful interview questions. actually you posted more interviewer asked questions. thank you so much. keep updating different kinds of interview questions.
    veritas volume manager training in chennai

    ReplyDelete
  31. ya, super... having good idea for posting this with the helpful mind. Many interviews asked the same questions like this... helpful for java interviewers...
    CCNA Training in Chennai

    ReplyDelete
  32. This java multi threading interview questions are useful for all who wants the job in java field.
    Websphere MQ Training in Chennai

    ReplyDelete
  33. Very informative blog. java multit threading interview questiones are very helful for the job seekers.ios training in chennai

    ReplyDelete
  34. Multi threading concept is explained clearly and Question answer patter is nice to understand.
    weblogic training in chennai

    ReplyDelete
  35. Thanks for sharing a very helpful and very informative blog e commerce website design and development

    ReplyDelete
  36. MarketPress sets the standard for WordPress eCommerce arrangements, giving an exquisite shopping background that backings all real installment passages and permits you to effortlessly oversee dissemination and shopping costs with custom transportation alternatives.
    Wordpress Online Shop And Plugins Store

    ReplyDelete
  37. Outstanding post along with great blog, I adore this kind of intriguing content articles keep sharing Video Calling Application

    ReplyDelete
  38. Word-press Interactive Vocie Response Plugin Is A Multi Level IVR Plugin which comes with complete IVR Solutions in this site Multi-level ivr plugin

    ReplyDelete
  39. Wow! very useful information for me, this is very helpful at the my interview times and after refer that all information i will get new energy.

    Microstrategy Training in Chennai

    ReplyDelete
  40. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts.Very well information.

    Tableau Training in Chennai

    ReplyDelete
  41. Best SEO training in hyderabad all modules are clearly solved and practice with guide.seo training in hyderabadAnd clearly getting knowledge of seo.

    ReplyDelete


  42. this is valuable information for learners.thanks
    salesforce training in hyderabad

    ReplyDelete
  43. Great! Thanks for sharing the information. That is very helpful for increasing my knowledge in this fiel
    Red Ball | | duck life | Slitherio
    Red Ball 2 | Red Ball 3 | Red Ball 4

    ReplyDelete

  44. Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing.
    Regards,
    seo course in chennai

    ReplyDelete
  45. Helpful Information
    Freshers jobs way provide freshers jobs ,walkins,direct recruitment,openings for freshers and experienced and recruiting experienced and freshers Walkins

    ReplyDelete
  46. nice posts about the java multithread interview questions..
    SAP GRC training in hyderabad



    ReplyDelete
  47. useful information

    Online recruitment for bank jobs and government jobs and you can get Notification and application to apply online for bank jobs and govt jobs

    ReplyDelete
  48. Useful information:
    General Awareness and Current Affairs with Latest Current Affairs Quiz, GK Updates, General Knowledge Last 6 Months Current Affairs, Placement Papers, Model Papers, Interview Questions @ examvalue.com

    ReplyDelete
  49. java multiThreading inteview questions..
    Hadoop training in hyderabad.All the basic and get the full knowledge of hadoop.
    hadoop training in hyderabad

    ReplyDelete
  50. 100% Job Oriented R Programming for more Information click to the best dot-net training in Chennai

    ReplyDelete
  51. 100% Job Oriented R Programming for more Information click to the best msbi training in chennai

    ReplyDelete
  52. Nice article. Very useful for the people who are moving into java technology.
    unix training institute

    ReplyDelete
  53. Thanks for sharing this great content to my vision, keep sharing.
    msbi training institute

    ReplyDelete
  54. Thanks for the best blog.it was very useful for me.keep sharing such ideas in the future as well.this was actually what i was looking for,and i am glad to came here!
    five nights at freddy's 3 | five nights at freddy's 2 | fireboy and watergirl 3 | 2048 game online | duck life 3 | fireboy and watergirl 6 | age of war

    ReplyDelete
  55. nice! thank you so much! Thank you for sharing. Your blog posts are more interesting and impressive. I think there are many people like and visit it regularly, including me.
    192.168.1.1

    ReplyDelete
  56. Thanks for sharing this informative content that guided me to know the details about the training offered in different technology.
    Web Designing Course in Chennai | web designing training in chennai

    ReplyDelete
  57. Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing.
    Regards,

    PHP Training in Chennai | Webdesigning Training in Chennai

    ReplyDelete
  58. Hii,

    Glad to have visit this blog, i loved reading this articles.

    Keep updating more :)

    Oracle Performance Tuning Training in Chennai (Adyar)

    ReplyDelete
  59. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
    Dot net training in Chennai | dot net course in Chennai

    ReplyDelete
  60. Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing.
    Regards,
    JAVA Training in Chennai | Multimedia Training in Chennai

    ReplyDelete
  61. Thank you for sharing valuable information. Nice post. I enjoyed reading this post.Can you play more games at :
    ninjago game | strikeforce kitty 2 | red ball | ninjago games | strike force kitty

    ReplyDelete


  62. Thanks for sharing your info. I really appreciate your efforts and I will be waiting for your further write.
    Thanks for sharing !
    tanki online 2 | 2048 game online

    ReplyDelete
  63. The interview questions shared are very much useful Thanks for sharing it
    Hadoop Training in Chennai

    ReplyDelete
  64. This comment has been removed by the author.

    ReplyDelete
  65. This comment has been removed by the author.

    ReplyDelete
  66. Thanks for sharing this information and keep updating us. This is more informatics and it really helped me to know the Hadoop developing.
    Big Data Training in Chennai
    Big Data Training in Chennai
    Big Data Training



    ReplyDelete
  67. Excellent post!!! The strategy you have posted Selenium Training in Chennai on this technology helped me to get to the next level and had a lot of information in it.
    Selenium Training

    ReplyDelete

  68. The blog or and best that is extremely useful to keep I can share the ideas
    of the future as this is really what I was looking for, I am very comfortable and pleased to come here. Thank you very much.
    tanki online | 2048 game| tanki online game

    ReplyDelete

  69. Thanks for sharing this information and keep updating us. Really this information is more useful to me.
    Software testing training in Chennai | Software testing training | testing training in Chennai

    ReplyDelete
  70. Very Nice Blog I like the way you explained these things.
    Indias Fastest Local Search Engine
    CALL360
    Indias Leading Local Business Directory

    ReplyDelete
  71. GREEN WOMEN HOSTELGreen Women hostel is one of the leading Ladies hostel in Adyar and we serving an excellent service to Staying people, We create a home atmosphere, it is the best place for Working WomenOur hostel Surrounded around bus depot, hospital, atm, bank, medical Shop & 24 hours Security Facility

    ReplyDelete

  72. For management and troubleshooting of enormous databases, corporation’s square measure searching for qualified and licensed dispersions Hadoop experts for the duty. Hadoop Training in Chennai | Hadoop Training Chennai

    ReplyDelete
  73. Thanks for sharing this information and this is really useful to me. Keep updating this information.
    Java Training in Chennai | Java Training | Java Course in Chennai

    ReplyDelete
  74. This content is so informatics and it was motivating all the programmers and beginners to switch over the career into the Big Data Technology. This article is so impressed and keeps updating us regularly.
    Hadoop Training in Chennai | Hadoop Training Chennai | Big Data Training in Chennai

    ReplyDelete
  75. This article provides the information about Java its key features and scope for java professionals. This information is really helpful me to know more about Java programming language. Java Training in Chennai | Java Training | Java Course in Chennai

    ReplyDelete


  76. Thanks for posting useful information.You have provided an nice article, Thank you very much for this one. And i hope this will be useful for many people.. and i am waiting for your next post keep on updating these kinds of knowledgeable things...Really it was an awesome article...very interesting to read..
    please sharing like this information......
    Android training in chennai
    Ios training in chennai

    ReplyDelete
  77. It's interesting that many of the bloggers your tips helped to clarify a few things for me as well as giving.. very specific nice content. And tell people specific ways to live their lives.Sometimes you just have to yell at people and give them a good shake to get your point across.
    Web Design Company
    Web Development Company
    Mobile App Development Company

    ReplyDelete
  78. Really it was an awesome article...very interesting to read..You have provided an nice article....Thanks for sharing..
    Web Design Company
    Web Development Company

    ReplyDelete
  79. Thanks for sharing this information and keep updating us. This is informative and really useful for me.

    JAVA Training Company in Delhi
    Animation Multimedia Training in Delhi
    CAD Training Center In Delhi

    ReplyDelete
  80. This article provides the information about Java its key features and scope for java professionals. This information is really helpful me to know more about Java programming language. Java Training in Chennai | Java Training | Java Course in Chennai

    ReplyDelete
  81. Thank you for taking the time to provide us with your valuable information. We strive to provide our candidates with excellent care and we take your comments to heart.As always, we appreciate your confidence and trust in us
    Java Training in Chennai

    ReplyDelete
  82. This article provides the information about Java its key features and scope for java professionals. This information is really helpful me to know more about Java programming language. Java Training in Chennai | Java Training | Java Course in Chennai

    ReplyDelete
  83. These ways are very simple and very much useful, as a beginner level these helped me a lot thanks fore sharing these kinds of useful and knowledgeable information.
    Android App Development Company

    ReplyDelete
  84. This article provides the information about Java its key features and scope for java professionals. This information is really helpful me to know more about Java programming language.

    JAVA Training Company in Delhi

    Animation Multimedia Training in Delhi

    CAD Training Center In Delhi

    ReplyDelete
  85. great and nice blog thanks sharing..I just want to say that all the information you have given here is awesome...Thank you very much for this one.
    Web Design Development Company
    Web design Company in Chennai
    Web development Company in Chennai

    ReplyDelete
  86. These ways are very simple and very much useful, as a beginner level these helped me a lot thanks fore sharing these kinds of useful and knowledgeable information.
    Fitness SMS
    Salon SMS
    Investor Relation SMS

    ReplyDelete
  87. Best jobs information providing web site latest updates
    CAG Recruitment 2017
    Recent jobs update for more details follow our site
    Forest Beat Officer Recruitment 2017

    ReplyDelete
  88. it is really amazing...thanks for sharing....provide more useful information...
    Mobile app development company

    ReplyDelete
  89. I am expecting more interesting topics from you. And this was nice content and definitely it will be useful for many people.
    iOS App Development Company

    ReplyDelete
  90. Thanks a lot! You made a new blog entry to answer my question; I really appreciate your time and effort.
    java training and placement in chennai |
    java j2ee training placement in chennai

    ReplyDelete

  91. Really Good blog post.provided a helpful information.I hope that you will post more updates like this.
    Digital marketing company in Chennai

    ReplyDelete

Popular Posts

Powered by Blogger.

About Me

My photo

JobsAcid is a 'job search engine' to provide finding a job on the internet easier for the user. It has designed as huge selection of job offerings on the same search engine.