File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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 8 API documentation
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
, 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
I agree. Here's the link:
subject: how class make singleThreaded?
threading in ejb
Thread Safe Objects
default implementation of JSPs
SingleThreadModel instances queue
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015