Questions tagged [asynchronous-processing]
The asynchronous-processing tag has no summary.
30 questions
5
votes
1
answer
154
views
SessionSubmit with ScheduledTask
I am trying to learn about ScheduledTask and SessionSubmit so that I can have calculations that run regularly in the background at set times. It seems that according to the documentation for ...
2
votes
1
answer
137
views
Does SessionSubmit[ScheduledTask[expr,spec]] create a separate thread?
I don't quite understand how SessionSubmit[ScheduledTask[expr,spec]] works.
We can create a background task, which can go without interfering with the main loop.
If ...
0
votes
1
answer
161
views
Problem with file locking
Before reporting this to Wolfram I want to make sure that I am not mistaken. I am using MMA version 13.0.1
The following will lock a file and then write "Hello" into it, all in the current ...
4
votes
1
answer
175
views
TaskWait, SocketObject, and WolframScript
I want to launch an asynchronous task with Wolfram Script to listen to a socket and print back information in the CLI. This was handled in previous versions by ...
5
votes
0
answers
104
views
How to extract result from LocalSubmit without assignment i.e. from the generated TaskObject
LocalSubmit in the following generates a TaskObject. To extract the result one needs an explicit assignment to some var ...
4
votes
2
answers
523
views
How to monitor multiple async image downloads?
I have a few thousand image urls that I want to download asynchronously, how can I do that while monitoring progress? I'm really asking for 5 things:
Show dynamic progress in bar
Downloads must be ...
0
votes
0
answers
188
views
Wait for a socket message to be received?
Let's say I have a socket server set up on my system, and connect to it in Mathematica 11.3 via
mysock = SocketConnect["X.X.X.X:YYYYY"];
where ...
5
votes
0
answers
134
views
How to implement an asynchronous pipeline with queue
Assume I have three tasks that must be performed in order:
...
10
votes
4
answers
337
views
Simple way to monitor a multiple URLDownloadSubmit calls?
I have a list of download jobs (e.g. {{url, filename} ...}) to do:
...
17
votes
2
answers
469
views
Can I trust URLSubmit?
Bug introduced in 11.2 or earlier and solved in V13.2
[CASE:4026293] confirmed
Let's create 10 asynchronous requests which just check if the site is there.
...
4
votes
2
answers
412
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. ...
2
votes
1
answer
101
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 ...
9
votes
0
answers
243
views
LibraryLink: What are DataStore and WolframIOLibrary?
Version 9 introduced DataStore and WolframIOLibrary_Functions in WolframLibrary.h. They don'...
1
vote
0
answers
64
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 ...
11
votes
1
answer
444
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, ...