occurring, existing, or operating at the same time processes; concurrent processes
Questions tagged [simultaneous]
371 questions
133
votes
11 answers
Speed up rsync with Simultaneous/Concurrent File Transfers?
We need to transfer 15TB of data from one server to another as fast as we can. We're currently using rsync but we're only getting speeds of around 150Mb/s, when our network is capable of 900+Mb/s (tested with iperf). I've done tests of the disks,…

BT643
- 3,495
- 5
- 34
- 55
42
votes
4 answers
Python Multiple users append to the same file at the same time
I'm working on a python script that will be accessed via the web, so there will be multiple users trying to append to the same file at the same time. My worry is that this might cause a race condition where if multiple users wrote to the same file…

Ray Y
- 1,261
- 3
- 16
- 24
31
votes
5 answers
which(vector1 < vector2)
Let's make a small example first, that computes in R:
x<- c(1,3,1,4,2)
max(which(x<2))
[1] 3
Now, I would like to do this not just for one value 2, but for many values simultaneously. It should give me something like…

MrHallo
- 413
- 3
- 6
31
votes
10 answers
Running Jenkins job simultaneously on all nodes
TLDR: I want to be able to run job simultaneously on multiple nodes in Jenkins pipeline. [ for example - build application x on nodes dev, test & staging nodes based on aws ]
I have a large group of nodes with the same label. I would like to be…

user2406467
- 1,017
- 6
- 18
- 22
27
votes
6 answers
Concurrent access to static methods
I have a static method with the following signature:
public static List processRequest(RequestObject req){
// process the request object and return the results.
}
What happens when there are multiple calls made to the above method…

user1226058
- 403
- 1
- 6
- 12
20
votes
2 answers
Single line with multiple commands using Windows batch file
I try to understand how multiple commands in a single command line in a batch file work.
dir & md folder1 & rename folder1 mainfolder
And other case with similar commands, but & substituted with &&.
dir && md folder1 && rename folder1…

Quanti Monati
- 769
- 1
- 11
- 35
18
votes
1 answer
Use microphone in multiple app simultaneously in Android
We have an Android device on which we would like to use the microphone in 2 app simultaneously.
In fact, we have a vocal command service that is running in the background (we are using the CMU Sphinx library). The problem is when we start a video…

Louisbob
- 860
- 3
- 9
- 22
15
votes
3 answers
iOS: Sample code for simultaneous record and playback
I'm designing a simple proof of concept for multitrack recorder.
Obvious starting point is to play from file A.caf to headphones while simultaneously recording microphone input into file B.caf
This question -- Record and play audio Simultaneously --…

P i
- 29,020
- 36
- 159
- 267
15
votes
4 answers
How does a wiki handle multiple simultaneous edits?
This has always lingered in the back of my mind, so I figure I might as well go ahead and ask.
How does a wiki handle multiple edits on the same content?
Here's a simplistic example of what I'm asking. Let's say that a page has the following…

knpwrs
- 15,691
- 12
- 62
- 103
12
votes
3 answers
Simultaneous programming on the same project in PhpStorm/IntelliJ IDEA
Is is possible in PhpStorm/IntelliJ IDEA for two (or more) programmers to work on the same project simultaneously, i.e. editing the same files at the same time?
Imagine something like http://collabedit.com/, but in IDE.
When we start new projects,…

juzna.cz
- 324
- 3
- 10
12
votes
6 answers
Two simultaneous AJAX requests won't run in parallel
I have problem with two simultaneous AJAX requests running. I have a PHP script which is exporting data to XSLX. This operation take a lot of time, so I'm trying to show progress to the user. I'm using AJAX and database approach. Actually, I'm…

filip.karas
- 596
- 2
- 11
- 27
11
votes
6 answers
Parallel HTTP requests in PHP using PECL HTTP classes [Answer: HttpRequestPool class]
The HttpRequestPool class provides a solution. Many thanks to those who pointed this out.
A brief tutorial can be found at: http://www.phptutorial.info/?HttpRequestPool-construct
Problem
I'd like to make concurrent/parallel/simultaneous HTTP…

Jon Cram
- 16,609
- 24
- 76
- 107
11
votes
1 answer
Simultaneous assignment semantics in Python
Consider the following Python 3 code:
a = [-1,-1,-1]
i = 0
And now consider the following two versions of a simultaneous assignment over both a and i:
Assignment version 1:
a[i],i = i,i+1
Assignment version 2:
i,a[i] = i+1,i
I would expect these…

hquilo
- 123
- 1
- 5
10
votes
1 answer
Is there any limit on number of concurrent hits or simultaneous executions on Google App Script Web App
I am writing an Apps Script(to process emails, Tasks and Calendar events) and want to deploy it as a web App.
The App will run in the context of the user who runs it.
The App will be used by more than 10k+ users and probably even more.
Before I…

prasun
- 7,073
- 9
- 41
- 59
9
votes
2 answers
Simultaneous substitutions with s/// in Perl 6
Is there a way to do simultaneous substitutions with s///? For instance, if I have a string with a number of 1s, 2s, 3s, etc, and I want to substitute 1 with "tom", and 2 with "mary", and 3, with "jane", etc?
my $a = "13231313231313231";
say $a ~~…

lisprogtor
- 5,677
- 11
- 17