A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCM Java EE 6 Enterprise Architect Exam Guide
this week in the
how class make singleThreaded?
Joined: Apr 12, 2006
May 31, 2006 23:56:00
how i make a class singleThreaded and FIFO type?
Joined: Mar 22, 2006
Jun 01, 2006 00:10:00
Please do not multiple posts for the same question and if you have something to else to ask then you can ask the same in the thread that you started.
to err is human, but the company policy doesn't allow it!
Jesper de Jong
Joined: Aug 16, 2005
Jun 01, 2006 01:03:00
Properties like single or multithreaded and FIFO or not are not properties of a class.
Your question does not make sense.
Java Beginners FAQ
JavaRanch SCJP FAQ
The Java Tutorial
Java SE 7 API documentation
- My blog about Scala
Joined: Jan 29, 2003
Jun 01, 2006 06:33:00
Describe your need a bit. Making a class single threaded is not common language in Java, so I'm not sure what you're up to.
If you want to make sure that only one thread is executing methods on a given object instance, make all the methods synchronized.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
subject: how class make singleThreaded?
SingleThreadModel instances queue
default implementation of JSPs
Thread Safe Objects
threading in ejb
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014