Solved

multithreaded action from one request? experts only

Posted on 2004-03-25
2
170 Views
Last Modified: 2010-04-01
check out this book comparison price:

http://www.valuecompare.com

and enter a book and search. In 12 seconds or so, they can search about 20 bookstores. That's less than a second per bookstore.

when i do this in cold fusion, it would take me probably a minute or more.

Ok, maybe I dont know my cold fusion, but this isn't rocket science.

In CF, the requests are done sequentially down the page, i.e. i will grab amazon's price, then once im done and parsed for the price, i will go to barnes and noble, so on and so forth.

i don't know much about JSP to know if this same bit can be done any differently - namely, how can it done in 12 seconds ? is JSP just inherently faster (which i doubt, since regardless of language I'd think the most time wasted would have been establishing connection with the bookstore servers) or as I suspect some languages may be able to do, it can be programmed to do multithreaded requests, so all 20 requests or so are done simultanously?

0
Comment
Question by:zooks76
2 Comments
 
LVL 6

Assisted Solution

by:jarasa
jarasa earned 25 total points
ID: 10678997
I guess so but not really in Java but maybe done in C/C++.

Don't know about CF, you can make a Java that creates some threads to do your search but can't tell you if it will be faster, maybe just a matter of the server capacity bandwith etc...

Javier
0
 
LVL 14

Accepted Solution

by:
kennethxu earned 25 total points
ID: 10679534
>> it can be programmed to do multithreaded requests, so all 20 requests or so are done simultanously?
hmm... you can do it in java easily. I'm sure it will improved the performance. you can run 20 thread and print out the result when all of them are done.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
In 2017, ransomware will become so virulent and widespread that if you aren’t a victim yourself, you will know someone who is.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now