Chao:

The simplest means would be to:
Code a method which calculates result X from the method parameters(a,b,c)
Declare this method be synchronized so that the very last iteration (call it n iteration) will be allowed to complete and report back to it's results  to the next to last (n-1) iteration which will be allowed to complete and report back results to the n-2 iteration and so on..
Let us know of your progress..

Martin Gainty

______________________________________________

Disclaimer and confidentiality note

Everything in this e-mail and any attachments relating to the official business of Laconia Data Systems (LDS) is proprietary to the company. It is confidential, legally privileged and protected by law. LDS does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of LDS.

The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way.

LDS can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference.

             _____________GMT-5___________________

 

>From: "V.T.R.Ravi Kumar" <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Critical calculations
>Date: Mon, 13 Jan 2003 09:10:18 +0530
>MIME-Version: 1.0
>Received: from mc1-f7.law16.hotmail.com ([65.54.236.14]) by mc1-s17.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Sun, 12 Jan 2003 19:43:57 -0800
>Received: from swjscmail2.java.sun.com ([192.18.99.108]) by mc1-f7.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Sun, 12 Jan 2003 19:43:57 -0800
>Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])by swjscmail2.java.sun.com (Postfix) with ESMTPid 12CB5214F7; Sun, 12 Jan 2003 20:40:37 -0700 (MST)
>Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d) with spool id 5089748 for [EMAIL PROTECTED]; Sun, 12 Jan 2003 20:38:15 -0700
>Received: from bhelhwr.co.in (unknown [210.212.89.197]) by swjscmail1.java.sun.com (Postfix) with SMTP id AC1F64822 for <[EMAIL PROTECTED]>; Sun, 12 Jan 2003 20:38:12 -0700 (MST)
>Received: from hwr06.bhelhwr.co.in (hwr06.bhelhwr.co.in [10.3.1.16]) by bhelhwr.co.in (8.11.6/8.11.6) with ESMTP id h0D3ebf02115 for <[EMAIL PROTECTED]>; Mon, 13 Jan 2003 09:10:38 +0530
>Received: from ccxhallvtr ([10.3.7.212]) by hwr06.bhelhwr.co.in (8.11.6/8.11.6) with SMTP id h0D3Xnu30015 for <[EMAIL PROTECTED]>; Mon, 13 Jan 2003 09:03:49 +0530
>Delivered-To: [EMAIL PROTECTED]
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Mailer: Microsoft Outlook Express 5.50.4133.2400
>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
>Message-ID: <009001c2bab5$7e2b2980$[EMAIL PROTECTED]>
>Sender: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]>
>Return-Path: [EMAIL PROTECTED]
>X-OriginalArrivalTime: 13 Jan 2003 03:43:57.0358 (UTC) FILETIME=[006A5CE0:01C2BAB6]
>
>Hi everyone,
>
>Here I have a situation where I have to do some calculations based on some values entered by the client.
>
>The values and the formula are kept in tables
>
>ie.,
>if we have
>
>x=0.2a+0.6b+0.2c
>
>in tables i have
>
>val factor
>a 0.2
>b 0.6
>c 0.2
>
>x is calculated from this table similarly y and z are also calculated and thier result is stored in another table where
>t=0.4x+0.2y+0.4z
>val factor
>x 0.4
>y 0.2
>z 0.4
>
>again the calculated t,u,v traverse to another table
>here the values are entered by user in only one base table where the values calculated traverse up to another table and then another.
> x t is got from xyz
> t y
> z
>
> i
>m u j u is got from ijk m is got from tuv
> k
>
> l
> v m v is got from lmn
> n
>
>
>here the base table is having xyz,ijk,lmn etc.
>the next table gets the values tuv from the base table
>the next table gets value of m from tuv
>
>The resultant in these tables are then used for root cause analysis and course correction.
>
>At present I am calculating the values sequentially
>
>Can anyone suggest any other method using thread whereby my calculation speed may be increased ( at present the caluculations take approx 1 to 2 hrs)
>
>
>chao
>
>----------------------------------------------------
> V.T.R.Ravi Kumar
>Engineer,CCX,BHEL, Haridwar
>Phone : Office-91-01334-285260
> Res -91-01334-226121
>-----------------------------------------------------
>
>==========================================================================To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com


Help STOP SPAM: Try the new MSN 8 and get 2 months FREE* =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com

Reply via email to