asynchronous

.net c # : Creating a Async Process.

Hi , I am creating a Console Application, in that I need to Call a Method, that will do a list of JOBS. But I want that Method does not have any impact on Main Application, It will just do it's jobs.. that's all. ...

Need an example showing how to do async HTTP requests.

Im using a web service, so I want to use an async thread for the HTTP authentication request and another thread later to make additional service requests while my main thread runs. Would like to see a good example of how to do this and how to show busy messages somehow in main app. How does the main app know when the thread finished? An...

What is the best way to do multithreading or asynchronous task in .NET with return value?

What would be the best way to do multithreading or asynchronous task in the following situation in C#? The simplified situation: A http request needs to make 5 or more web service calls. Upon completion each web service call will receive and return a string list as a result. The caller (of 5 web service calls) need to merg...

Asynchronous socket programming

hello, i'm creating an Asynchronous socket programming in vb.net. i've utilised the code from Asynchronous client and server code frtom the following links: http://msdn.microsoft.com/en-us/library/fx6588te.aspx for server program The client program is present in the same link in /bew39x2a.aspx(sorry i'm a new user so could post only on...

Generalizing the interface to a progress bar in a GUI

I'm working on an application that has a main form with a status bar at the bottom. The status bar contains a ProgressBar, and a Label that I want to use to show the user the current progress of some work that is being done. The status bar also contains a label which I want to use like a click-able Cancel button. I've create asynchronou...

What are Async Sockets?

What are Async Sockets? How are they different from normal sockets (Blocking and Non-Blocking)? Any pointers in that direction or any links to tutorials will be helpful. Thanks. ...

Reading a whole file on a network drive the fast way (Windows, C/C++, C#, ...)

Lately I've been having problems reading big files on a network drive and I just can't pinpoint what I may be doing wrong. I tried both in C++ (Unmanaged) and in C# and had about the same performances on both...which were somewhat abysmal. Sometimes it will read at 4 KB/s a file on the network, but if this file is located on the local H...

How do you chain together two Asynchronous Operations with the Reactive Framework?

All I really want to do is complete two async operations, one right after the other. E.g. Download website X. Once that's completed, download website Y. ...

Dynamic Event Conditions

Consider that we've a class named Foo that fires "ready" event when it's ready. from observer import SubjectSet class Foo: def __init__(self): self.events = SubjectSet() self.events.create('ready') def do_sth(self): self.events.fire('ready') As you see, do_sth method makes ready instances of the Foo class. But subcla...

Tomcat - Asynchronous HTTP Calls Super Slow vs. Jetty

We have a java-based web application that makes a couple bursts of asynchronous http calls to web services & api's. Using a default Jetty configuration, the application takes roughly 4 seconds to complete. The same operation in Tomcat is taking over a minute. A slew of configuration changes for Tomcat have been attempted, but nothing se...

Cannot confirm that element exists on the page when I clearly see it there.

I'm using a function which utilizes jQuery in order to grab information from a JSON feed. The problem here is that from the feed I must pick 10 items that meet the criteria of being within the last year (31 billion milliseconds from the request for argument's sake) and I have to specify how many results I want from the feed with a varia...

WinForms Control.BeginInvoke asynchronous callback

I have a number of Janus grid controls that need to be populated on an application startup. I'd like to load these grids on different threads to speed startup time and the time it takes to refresh these grids. Each grid is on a seperate tab. Ideally I'd like to use Control.BeginInvoke on each grid and on the grid load completing the t...

.NET webservice - acknowledge quickly, but continue processing in background

I'm building a .NET web service that will be consumed by a vendor's application, and I'm not sure how to accomplish the following: The vendor will call my webserivce with some information, but wants an acknowledgement returned quickly, just stating that I received their info. They don't care what I do with it, and don't want acknowledg...

MVC2 One Async Call, Multiple Async Updates...

I have an operation on my Page that then requires 3 long (few seconds each) operations to be performed in series. After each operation is performed though, I would like the controller to return a partial view and have the page update with a status (keeps the user informed, I find that if people know that stuff is happening they worry le...

Unit test System.Threading.Timer in .NET

How to unit test a timer based on System.Threading.Timer in .NET The System.Threading.Timer has a callback method ...

Asynchronous shell commands

I honestly can't believe I can't find a solution for this online. I've run across a few things that seem similar, but nothing that really does what I want... I'm trying to use a shell script to start a command. I don't care if/when/how/why it finishes. I want the process to start and run, but I want to be able to get back to my shell im...

Create multiple TCP Connections in C# then wait for data

Hi Everyone, I am currently creating a Windows Service that will create TCP connections to multiple machines (same socket on all machines) and then listen for 'events' from those machines. I am attempting to write the code to create a connection and then spawn a thread that listens to the connection waiting for packets from the machine,...

synchronous Vs asynchronous ruminations

Hey, Lets say I have my netwrok thread , which inside it I get Data regarding some people,and each record(of 1 man) is being put inside a queue. I have another Calcthread who reads from that queue and performs some calculation and DB actions. Since the calculation and DB actions take quite amount of time, I though doing the calculation...

is it safe to to destroy a socket object while an asyn_read might be going on in boost.ASIO?

In the following code: tcp::socket socket(io_service); tcp::endpoint ep(boost::asio::ip::address::from_string(addr), i); socket.async_connect(ep, &connect_handler); socket.close(); is it correct to close the socket object, or should I close it only in the connect_handler(), resort to shared_ptr to prolong the life of of the socket...

Asynchronous message queues and processing like Amazon Simple Queue service in django

There are many activities on an application that need things like: Send email, Post to twitter thumbnail an image, into several sizes call a cron to find connected relationships A good way to do these tasks is to write into an asynchronous queue on which operations are performed. What django application can be used to implement such...