28 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
88
views
Swift - Time Consuming Processing of an Array
I am trying to process over an array of simple elements, where on every element of the array a time-consuming process of updating the UI with a Timer will be started. The order of the elements in the ...
0
votes
1
answer
159
views
Run serial jobs depending on maximum number of jobs using srun in slurm
Good day,
Is there a way to set slurm that when the number of jobs exceed the maximum number of jobs a user have the rest will be performed serially automatically?
For example; I have a maximum of 50 ...
0
votes
1
answer
1k
views
How to execute processes in serial and in parallel using python
How can i create a process execution in serial fashion vs parallel fashion?
For example i want each process to execute the following python function:
def execute():
time.sleep(random.randint(0,9))...
1
vote
1
answer
224
views
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 ...
0
votes
2
answers
889
views
Parallel processing vs Serial processing
I have an implementation of a generic Matrix and I create an option
to use '*' and '+' operators with parallel processing and serial processing.
parallel caluclations example:
consider we have m1 and ...
-1
votes
1
answer
600
views
How to convert radix sort serial code to parallel code in Matlab?
I am interested in parallel programming. I wrote a serial radix sort algorithm. Now I want to convert it to a parallel algorithm. What methodology can I apply to it in order to convert it to parallel? ...
2
votes
2
answers
264
views
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 ...
439
votes
37
answers
388k
views
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 = ...
2
votes
2
answers
138
views
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 => ...
0
votes
1
answer
2k
views
How two-phase locking helps avoid the non-serializable schedule?
Now, I have two transactions here.
The consistency requirement be A=0 v B=0, with A=B=0 the initial values
T1: read(A);
read(B);
if A=0 then B:=B+1;
write(B).
T2: read(B);
read(A);
...
1
vote
1
answer
180
views
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 ...
0
votes
0
answers
292
views
Serial NSOperation
I have Table View Controller with collection of cells, each cell displays 2 values:
–––––––––––––––––––––––––
| cell1 &...
1
vote
0
answers
274
views
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 ...
-2
votes
1
answer
236
views
Serial Fortran code with openMPI
I'm a newbie to parallel computing.
I have to run a legacy fluid dynamics Fortran 77 code. The program is serial and runs slowly, so I was wondering about the possibility to make it run parallel (e.g....
0
votes
1
answer
832
views
Understanding gcc optimization -o3 on a multicore system
I'm currently comparing a serial versus a parallel implementation of some code on a quad-core processor. One of the things I'd like to understand/measure is how the serial code performs when it is ...