• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Threads - usage

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have worked on iOS and did multithreading frequently. I am working on Java web app and haven't read any code involving threads. I read somewhere, since they are already threaded, so no scope. My question, is it true? Do you program with threads (most usage of Java is in web apps I think)? If not, why it's asked in interviews when it's not used anywhere? What should I say if somebody asks, do you have exp. in multithreading, give real scenario?
 
Rancher
Posts: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java has a whole class, Thread, to create threads. It has semaphores or mutexes built in.

Many Java programmers never deal with threads themselves, things like Servlet containers manage the threads for them.

I write code using threads all the time. They are useful for the kinds of programs that I write.

Folks ask interview questions about them for a number of reasons. One might be that since using Threads properly is an advanced technique, it allows the interviewer to separate novices from experts. But there is a big difference between using Java Threads properly, and using them at all. The interviewer may not know this difference herself.
 
reply
    Bookmark Topic Watch Topic
  • New Topic