473,325 Members | 2,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

page multithreading

Hi,

I'm loading images into a client by specifing an aspx page as a source,
as shown in the example below, which uses the webclient to load the
image from a remote resouce, and stream it back to the client:

<img src="/streamer.aspx?src=image1" >
<img src="/streamer.aspx?src=image2" >
<img src="/streamer.aspx?src=image3" >
<img src="/streamer.aspx?src=image4" >
<img src="/streamer.aspx?src=image5" >
<img src="/streamer.aspx?src=image6" >
....

The problem is, it appears that the streamer.aspx is locked, so that
images load sequentially, as one call waits for another to end the
operation before proceeding with it's own operation ... requests are
being qued. Looks like it's a single threaded operation? Is there a
way to force streamer.aspx to span multiple threads of itself, or accept
a number of request, and stream the images back to the client
asynchronously, so that all of them load at the same?

I tried putting the webclient operation in a new thread of its own, but
that doesn't fix it, obviously, as the main thread (that of
streamer.aspx) still waits before all threads it call are completed.

Any pointers would be appreciated. I could write a separate image
delivery server, but that is out of scope of my application, and really
the last resort.

Thanks!

ib.
Nov 18 '05 #1
2 1221
>Ireney Berezniak" <ir**************@incipio.ca> wrote in message
news:UyX9d.885$z96.575@clgrps12...
Hi,

I'm loading images into a client by specifing an aspx page as a source, as
shown in the example below, which uses the webclient to load the image
from a remote resouce, and stream it back to the client:

<img src="/streamer.aspx?src=image1" >
<img src="/streamer.aspx?src=image2" >
<img src="/streamer.aspx?src=image3" >
<img src="/streamer.aspx?src=image4" >
<img src="/streamer.aspx?src=image5" >
<img src="/streamer.aspx?src=image6" >
...

The problem is, it appears that the streamer.aspx is locked, so that
images load sequentially, as one call waits for another to end the
operation before proceeding with it's own operation ... requests are being
qued.


Unless you are doing something to serialize the code inside streamer.aspx,
then it should run concurrently. However Internet Explorer only uses
something like two threads per browser window to retrieve images instead of
requesting them all at the same time. This will cause the images to
download somewhat sequentially. Making the download faster, say by turning
on caching for streamer.aspx may reduce the appearence that the images are
loading one at a time.

David
Nov 18 '05 #2
You may want to try EnableSessionState="false" in the @ Page
directive. Requests attached to a specific session are serialized.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 09 Oct 2004 20:08:20 GMT, Ireney Berezniak
<ir**************@incipio.ca> wrote:
Hi,

I'm loading images into a client by specifing an aspx page as a source,
as shown in the example below, which uses the webclient to load the
image from a remote resouce, and stream it back to the client:

<img src="/streamer.aspx?src=image1" >
<img src="/streamer.aspx?src=image2" >
<img src="/streamer.aspx?src=image3" >
<img src="/streamer.aspx?src=image4" >
<img src="/streamer.aspx?src=image5" >
<img src="/streamer.aspx?src=image6" >
...

The problem is, it appears that the streamer.aspx is locked, so that
images load sequentially, as one call waits for another to end the
operation before proceeding with it's own operation ... requests are
being qued. Looks like it's a single threaded operation? Is there a
way to force streamer.aspx to span multiple threads of itself, or accept
a number of request, and stream the images back to the client
asynchronously, so that all of them load at the same?

I tried putting the webclient operation in a new thread of its own, but
that doesn't fix it, obviously, as the main thread (that of
streamer.aspx) still waits before all threads it call are completed.

Any pointers would be appreciated. I could write a separate image
delivery server, but that is out of scope of my application, and really
the last resort.

Thanks!

ib.


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: dixp | last post by:
I'm new to writing multithreaded apps and I have a design question. I have a winforms app and a class which has a method that does processing which is time intensive. I want the user to be able...
47
by: mihai | last post by:
What does the standard say about those two? Is any assurance that the use of STL is thread safe? Have a nice day, Mihai.
11
by: Mark Yudkin | last post by:
The documentation is unclear (at least to me) on the permissibility of accessing DB2 (8.1.5) concurrently on and from Windows 2000 / XP / 2003, with separate transactions scope, from separate...
1
by: GianGuz | last post by:
In the following example Global is able to create and manage access to objects of any kind (even in a multithreading environment) with and index value attached to. So a Global<0, string> is a...
5
by: sarge | last post by:
I would like to know how to perform simple multithreading. I had created a simple form to test out if I was multithreading properly, but got buggy results. Sometime the whole thig would lock up...
9
by: tommy | last post by:
hi, i have found a example for multithreading and asp.net http://www.fawcette.com/vsm/2002_11/magazine/features/chester/ i want to speed up my website ... if my website is starting, they...
2
by: Rich | last post by:
Hello, I have set up a multithreading routine in a Test VB.net proj, and it appears to be working OK in debug mode and I am not using synchronization. Multithreading is a new thing for me, and...
55
by: Sam | last post by:
Hi, I have a serious issue using multithreading. A sample application showing my issue can be downloaded here: http://graphicsxp.free.fr/WindowsApplication11.zip The problem is that I need to...
5
by: sandy82 | last post by:
Whats actuallly multithreading is ... and how threading and multithreading differ . Can any1 guide how multithreading is used on the Web .. i mean a practical scenario in which u use...
7
by: Ray | last post by:
Hello, Greetings! I'm looking for a solid C++ multithreading book. Can you recommend one? I don't think I've seen a multithreading C++ book that everybody thinks is good (like Effective C++ or...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.