Questions tagged [asynchronous-processing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
0answers
50 views

How to implement an asynchronous pipeline with queue

Assume I have three tasks that must be performed in order: ...
9
votes
4answers
158 views

Simple way to monitor a multiple URLDownloadSubmit calls?

I have a list of download jobs (e.g. {{url, filename} ...}) to do: ...
12
votes
1answer
171 views

Can I trust URLSubmit?

Bug introduced in 11.2 or earlier and persists through V11.3 [CASE:4026293] confirmed Let's create 10 asynchronous requests which just check if the site is there. ...
4
votes
2answers
188 views

Batch Loading of Mathematica Packages and Issues with Autoloading

I have a package that initiates some periodic tasks via the ScheduledTasks functionality. The tasks in question also require the use of parallel tools and the launching of external commands. ...
1
vote
1answer
53 views

ProcessObject loses connection to StandardOuput

At many points I've wanted to connect to an external process, have it run, and communicate with it via stdin and stdout interactively. At many points I have been stymied. With the ...
6
votes
0answers
99 views

LibraryLink: What are DataStore and WolframIOLibrary?

Version 9 introduced DataStore and WolframIOLibrary_Functions in WolframLibrary.h. They don'...
1
vote
0answers
49 views

How can I implement a consumer-producer problem? [closed]

I want to implement consumer-producer problem in Mathematica. Example: I want 2 threads/processes: 1st: Get data from Twitter's API by doing multiple requests. After each request, I want to send the ...
9
votes
1answer
251 views

LibraryLink: Asynchronous Examples

Inside the directory structure of LibraryLink there are several example files. Basically, they are divided in two types: Synchronous: demo.c, demo_error.c, ...
26
votes
1answer
825 views

Asynchronous Programming

Consider that you would like to listen for Raw WiFi Packets coming into your NIC. Since Mathematica doesn't have built-in functions for such low level programming (as far as I know), one alternative ...
5
votes
0answers
73 views

Is there any way to make custom AsynchronousTaskObjects?

One of the pieces of functionality that intrigues me the most in Mathematica 9+ comes in the form of StartAsynchronousTask and friends. However, it can only start ...
9
votes
1answer
178 views

Activity indicators for slow Dynamic expressions?

With Dynamic and gui-constructs like Popup I always have a problem: when an expression takes a while to evaluate the Dynamic ...
1
vote
3answers
332 views

How to parallelize a Do loop containing URLFetchAsynchronous?

I'm have a simple piece of code: results={}; Do[If[!FailedQ[g = grab[i]], AppendTo[results, g]], {i, 2000000, 3000000}] I had thought that the simplest way to ...
5
votes
2answers
232 views

How can I run a list of Tasks serially?

I have a list of ScheduledTask's to run in sequence one at a time. How can I set these to run in order so that the next one starts automatically after the previous one finishes?
4
votes
0answers
137 views

ParallelSubmit and WaitNext: check if a job is done before calling WaitNext

Say I process something with ParallelSubmit: LaunchKernels[] job = ParallelSubmit[1 + 2] Parallel`Developer`QueueRun[] Then, I will use ...
1
vote
1answer
447 views

Is there a better way to download images in parallel?

Is this the best way to batch save a list of image urls in parallel? ...
8
votes
0answers
712 views

Does a running evaluation continue after the PC wakes from sleep mode?

Are there any issues with running a process on Mathematica, putting the computer to sleep, and then waking the computer sometime later? It seems to work just fine on my test process (appending data ...
2
votes
1answer
248 views

Launching external program in background process with ParallelSubmit

I work on the implementation of an image processing pipeline in Mathematica in which I also would like to use external programs to do certain processing steps. As an example I have macros for the ...
0
votes
1answer
121 views

Scheduled tasks not preserving order with Dynamic?

In studying the last Basic Example in the documentation for StartScheduledTask, namely ...
2
votes
1answer
88 views

Is SynchronousUpdating->False supposed to make this simple Dynamic example work?

x = 0; Dynamic[{x, Button["+1", Pause[6]; x++]}, SynchronousUpdating -> False] The documentation states that Dynamic and Manipulate will abort synchronous ...
7
votes
2answers
491 views

What are Controlling and Computing Processes?

My wolfram user portal claims that I have 2 controlling processes and 8 computing processes. Mousing over the question mark gives me some information, but I still don't fully understand what this ...
9
votes
1answer
256 views

Difficulty catching thrown errors in asynchronous tasks

In this Question, Leonid explained that module variables can get garbage collected from a chain of asynchronous tasks unless their Temporary attribute is cleared ...
8
votes
1answer
302 views

Module variable scoping in Scheduled Tasks?

I ran across a scoping puzzle while experimenting with ScheduledTasks, and I'd be grateful for an explanation from the sages here. I found a workaround by intuitive horse sense, but was unable to ...
31
votes
4answers
2k views

Asynchronous evaluation: Is it possible?

Currently we have a limited number of ways to perform asynchronous evaluation. The most common is through Dynamic and Manipulate...