What is the difference between singlecall and singleton




















A good example might be a message publisher, that all code in the server needs to access to send messages to one or more subscribed clients If the callers alter the object's internal state, and those methods are not thread-safe, then you're bound to get into trouble.

That server should be single-call. But as Charles points out, if the server object accesses shared resources and what useful server doesn't? Still, those problems are more manageable. Access to a database, for example, can quite easily be made transactional, and hence safe.

Bottom line: going for single-call is a simple and effective way of getting rid of 'half' your troubles. Singleton: A single object instance services all client requests. Singletons guarantee that only one object instance is in memory at any time per application domain. What is the difference between singleton and single call remoting?

By Sureder Rawat in. NET Remoting on Aug 03 Remoting namespace which contains this enum. In Case of Single Call, for each request from the remote object, a new instance gets created to provide the service. So each new request object is separate.

Singleton is the mode where only one object gets created for all the requests made by remote objects.

So in this case its more efficient but at the same time its slow due to it needs to handle all the requests in object. Hope it will give you some idea. Submit New Thread. Fresher 8 Answers 9 Upvotes Views. Show All Interview Questions Infosys BPO Ltd. Accentia Technologies Ltd. Convergys India Pvt Ltd.

Adventity Global Services Pvt Ltd. Affiliated Computer Services Co. Agilent Technologies Pvt Ltd. Top Rated Companies: dr reddys laboratories ltd bank of america amazon india pvt ltd hp inc tata communications ltd ultratech cement ltd maruti suzuki india ltd tata motors ltd ericsson pvt ltd mahindra mahindra ltd cipla ltd accenture larsen and toubro ltd cognizant technology solutions bharti airtel ltd dell india itc ltd ibm india pvt ltd genpact india pvt ltd icici bank ltd oracle tata consultancy services ltd axis bank ltd infosys technologies ltd mphasis ltd wipro technologies ltd capgemini india pvt ltd hcl technologies ltd kotak mahindra bank.

Jobbuzz Feedback Contact us Jobbuzz for Employers. Follow us on Jobbuzz.



0コメント

  • 1000 / 1000