Questions tagged [serial-processing]
27 questions
414
votes
36 answers
Resolve promises one after another (i.e. in sequence)?
Consider the following code that reads an array of files in a serial/sequential manner. readFiles returns a promise, which is resolved only once all files have been read in sequence.
var readFile = function(file) {
... // Returns a…

XåpplI'-I0llwlg'I -
- 21,649
- 28
- 102
- 151
17
votes
3 answers
NSOperationQueue serial FIFO queue
Is it possible to use an NSoperationQueue object as a serial FIFO queue by setting its maxConcurrentOperationCount to 1?
I note that the docs state...
For a queue whose maximum number of concurrent operations is set to 1, this equates to a serial…

Barjavel
- 1,626
- 3
- 19
- 31
11
votes
5 answers
Equivalent of GCD serial dispatch queue in iOS 3.x
Apple's Grand Central Dispatch (GCD) is great, but only works on iOS 4.0 or greater. Apple's documentation says, "[A] serialized operation queue does not offer quite the same behavior as a serial dispatch queue in Grand Central Dispatch does"…

jrdioko
- 32,230
- 28
- 81
- 120
7
votes
7 answers
GCD serial queue does not seem to execute serially
I have a method that at times can be invoked throughout my code. Below is a very basic example, as the code processes images and files off of the iphone photo gallery and marks them already processed when done with the method.
@property (nonatomic,…

inks2002
- 377
- 4
- 13
3
votes
1 answer
Tomcat JSPs appear to be running serially (instead of in parallel) - what am I missing?
I have the following simple JSP running in Tomcat 7. Nothing else in the container and no web.xml. I hit the url http://localhost:8090/test/test.jsp three times in quick succession from my browser in three separate tabs (Chrome).
<%@ page…

Mastering_the_Object
- 1,023
- 1
- 7
- 13
2
votes
2 answers
Serialize webservice calls and callbacks
I have a class that sends webservice calls and delivers the response via delegation.
I now want to add a caching layer in between the views and my webservice class.
This new class should serialize the calls in a way that every call is delayed until…

cLar
- 280
- 1
- 3
- 17
2
votes
2 answers
Calling arbitrary number of WS.url().get() in sequence
I have a List[String] of URLs that I want to load and process (parse, store to database) in sequence.
I found only fixed-length examples, like:
def readUrls = Action {
implicit request => {
implicit val context =…

Peter Celuch
- 43
- 5
2
votes
1 answer
shell script to execute command2 after completion of command1 in unix
If I have a UNIX shell script which has some commands on each line that needs to be run, like
#!/bin/bash
command1
command2
command2 to be excuted only after completion of command1. how to achieve it

Karunakar
- 2,209
- 4
- 15
- 20
1
vote
1 answer
Running multiple batch files serially using R?
I'm trying to run multiple batch files using a loop in R using the code below
for(i in 1:bfile)
{
setwd(dpv[i])
shell.exec("batcode.bat")
}
This loop calls all the batch files but what I want is to wait for one batch file to execute first…

Vaibhav
- 338
- 2
- 13
1
vote
3 answers
Close to serial textfile reading performance in MySQL
I am trying to perform some n-gram counting in python and I thought I could use MySQL (MySQLdb module) for organizing my text data.
I have a pretty big table, around 10mil records, representing documents that are indexed by a unique numeric id…

Alexandros
- 4,425
- 4
- 23
- 21
1
vote
1 answer
GCD serial queue does not seem to be serially executed when using Parse
Thanks in advance for any help. I am trying to create an app that allows a user to answer questions and add their own for a group of people. I am downloading stock questions from parse, and for a variety of reasons, I need these question to be…

cbuddeke
- 25
- 3
1
vote
0 answers
Fastest way to load text from URLS using Java without concurrency
odd request, I know, but I'm working on a program as a learning exercise which takes a .txt file containing a bunch of URLS pointing to text files on the web. It then hashes each word in each text and allows the user to search.
I'm building the…

sven
- 121
- 4
- 11
1
vote
2 answers
Does javascript load serially on every browser?
if i have multiple javascript file on a page, will it always load serially across browser?
for example, if the test*.js would write 1,2 and 3 using…

Kokizzu
- 24,974
- 37
- 137
- 233
1
vote
0 answers
mod_python does not process multiple requests from the same browser simultaneously for the same file
I have a page which can take long time to process. But in the mean time if the same page is accessed (from the same system), the second instance gets blocked till the first page finishes. Actually instead of the blocking behaviour, I would be happy…

user2101845
- 5
- 3
1
vote
1 answer
Sessionless HTTPHandler
Can't find this anywhere.
Is it possible to make an HTTPHandler sessionless?
Sometimes I export huge files that take some time to build. Waiting for an ashx to finish jams up the rest of my webmethod calls.
Does anyone know how to make an ashx…
user1382306