The Artima Developer Community
Sponsored Link

Java Answers Forum
Is it Synchronized?

2 replies on 1 page. Most recent reply: Apr 23, 2003 11:30 AM by Matt Gerrans

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Aladdin Mouhaimeed

Posts: 11
Nickname: aladdin11
Registered: Mar, 2003

Is it Synchronized? Posted: Apr 23, 2003 8:55 AM
Reply to this message Reply
Advertisement
I want to use some method in a JSP page, this method takes an array as an input and gives an array as an output, I mean that this method could be invoced simultaneously many times but everytime with different data in input and output; sould this method be sinchronized?
Is it enough that it works on its own data everytime to have no conflicts?


Senthoorkumaran Punniamoorthy

Posts: 335
Nickname: senthoor
Registered: Mar, 2002

Re: Is it Synchronized? Posted: Apr 23, 2003 11:12 AM
Reply to this message Reply
I don't think you need to have it as Synchronized. If you just write your code every time it is invoked by different user it will work with its own data.

Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: Is it Synchronized? Posted: Apr 23, 2003 11:30 AM
Reply to this message Reply
As long as two different threads don't operate on the same object, you should be off the proverbial hook.

Flat View: This topic has 2 replies on 1 page
Topic: converting a  char to a String Previous Topic   Next Topic Topic: Nim\Games of Piles\Grundy's Game in Java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use