Questions tagged [serial-processing]
27 questions
1
vote
2 answers
Concurrent or Serial queue for Reading or Writing
I'm writing an NSObject subclass similar to that of NSCache, which enables file caching to the disk on an iOS Device.
I am in the process of writing the queues for (i) reading (ii) writing, but I wanted to make sure that the type of queue I will be…

max_
- 24,076
- 39
- 122
- 211
0
votes
1 answer
Accelerate a C program using pthreads
I'm new here, and also I'm relatively new in programming in general. I' ve writen a program in C and I need to accelerate it using pthreads. I've tried to do so using OpenMP, but I don't know how to debug it. Also I need to find out if the programm…

Vasouli
- 47
- 1
- 8
0
votes
1 answer
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 jobs that I can run at the same time.
I want to…
0
votes
1 answer
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))
If i run the processes like:
for process in…

MK1000
- 23
- 2
- 7
0
votes
2 answers
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 m2 matrices and m3 = m1 * m2.
we calculate m3 row…

Eliav
- 29
- 5
0
votes
1 answer
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);
if B=0 then A:=A+1;
write(A).
I know that…

user3526130
- 43
- 8
0
votes
0 answers
Serial NSOperation
I have Table View Controller with collection of cells, each cell displays 2 values:
–––––––––––––––––––––––––
| cell1 | val1 | val2 |
–––––––––––––––––––––––––
| cell2 | val1 | val2 |
…

devster
- 53
- 1
- 4
0
votes
1 answer
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 running on a single core.
When I compile the serial…

user1790399
- 220
- 2
- 11
0
votes
1 answer
Synchronous functions without callbacks
Assume I have these two functions:
function complex() {
setTimeout(function() {
console.log('complex setTimeout');
}, 1000); // assume this value is random
function subFun() {
…

ciembor
- 7,189
- 13
- 59
- 100
0
votes
2 answers
PBS running multiple instances of the same program with different arguments
How do you go about running the same program multiple times but with different arguments each instance on a cluster, submitted through a PBS. Also, is it possible to designate each of these programs to a separate node? Currently, if I have a PBS…

abovezero
- 63
- 2
- 11
-1
votes
1 answer
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? When I tried to apply parfor instead of for, I…

MUMBUÇOĞLU
- 251
- 1
- 8
- 24
-2
votes
1 answer
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. by using open MPI), without deepening into the…

Loserrimo
- 31
- 2