Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
587 views

I'm trying to understand bare-metal startup code for Raspberry-pi 4. In that code, the first thing is to check if execution is done by core 0. start: // Check processor ID is zero (executing on ...
김태윤's user avatar
2 votes
2 answers
4k views

Can we somehow pass an option to run multiple threads/processes when we call Chroma.from_documents() in Langchain? I am trying to embed 980 documents (embedding model is mpnet on CUDA), and it take ...
Paris Char's user avatar
1 vote
0 answers
108 views

I am writing an operating system and have just started the other CPUs, so I am in assembly on each now. I have set up long mode and now I just need to perform a far jump. However, when I try to do any ...
BambooPyanda's user avatar
1 vote
0 answers
33 views

I'm using some python scripts to process images. An image is some between 500x500 or 4000x4000 pixels. The scripts do iterations over every pixel, so they're time consuming, so I set up the ...
Andrew_Butterworth's user avatar
0 votes
0 answers
349 views

I'm trying to get numba, multiprocessor and random number generators work together. I have downsized my real problem to the following piece of code containing the important elements. The following ...
Emi's user avatar
  • 119
0 votes
0 answers
227 views

I am creating a list of lists using a function that takes a long time to calculate each of the list elements. Since this is slowing down my whole process, I'm trying to make it run faster by using the ...
A.A.'s user avatar
  • 1,047
-1 votes
1 answer
72 views

The guarded-command looping construct do Condition ⇒ Command ... Condition ⇒ Command od involves nondeterministic choice, as explained in the text. An important theoretical concept related to ...
mahdis a's user avatar
0 votes
0 answers
133 views

I'm studying mit6.828 course, I don't understand why it must indirect call when booting APs in lab4. I try to direct call call mp_main(source code: movl $mp_main, %eax; call *%eax), but it causes ...
snow rw's user avatar
  • 11
1 vote
1 answer
378 views

I have googled decent enough to understand threads and processes. One thing I am confused is about single-threaded process. The scenario is the Server-Client application process where each client is ...
Preethi's user avatar
  • 55
0 votes
0 answers
75 views

1.a)How synchronization performed in multiprocessor system between threads, where thread share data but running in different processors. 1.b)Is single processor thread synchronization system ...
SPIDERMAN's user avatar
0 votes
0 answers
101 views

First of all I shall explain the structure of my scripts: Script1 --(call)--> Script2 function and this function further calls 12-15 functions in different scripts through multiprocessing, and in ...
ahsan azeem's user avatar
0 votes
0 answers
682 views

I have a CSV with 100k processes with their respective Interarrival time, Service Time and # of processors required. I did simulation in Python but it was not even close to the theoretical results. ...
pablodavila's user avatar
0 votes
1 answer
359 views

I'm trying to understand ccNUMA systems but I'm a little bit confused about how OpenMP's scheduling can hurt the performance.Let's say we have the below code.What is happening if c1 is smaller than c0 ...
spyros's user avatar
  • 127
2 votes
0 answers
497 views

We just bought single node server with 2x18=36 cores and 200 Gb ram for scientific calculations. There are several users and it is very hard to track jobs and to schedule them between users. This is ...
Baranas's user avatar
  • 71
4 votes
1 answer
5k views

I am working on a dual-processor windows machine and am trying to run several independent python processes using the multiprocessing library. Of course, I am aiming to maximize the use of both CPU's ...
Severin's user avatar
  • 311
1 vote
1 answer
2k views

I'm learning about synchronization and now I'm confused about the definition of atomic operation. Through searching, I could only find out that atomic operation is uninterruptible operation. Then, ...
dnjsdnwja's user avatar
  • 409
1 vote
0 answers
381 views

I'm trying to speed up an imaging pipeline considering two processors. Take images and write it to a pipe read image and compute Therefore, I've read something about pipes: import os from ...
Max Krappmann's user avatar
0 votes
1 answer
652 views

Using Python 2.7 on Windows, the following code works but causes a problem with msvc. import io import matplotlib.pyplot as plt import matplotlib.pyplot as plt2 from multiprocessing import Process, ...
user3701730's user avatar
0 votes
1 answer
636 views

I'm currently learning for my final exam in operating systems and I'm stuck with a (probably very easy) question from earlier exams. The problem is, that we've never had that topic in the lecture and ...
akihikokayaba's user avatar
0 votes
0 answers
496 views

I am running a python script on two computers of different configurations: PC-1 is more powerful than PC-2. The issue is that PC-1 has a computational time which is twice that of PC-2...obviously I ...
RomB's user avatar
  • 295
1 vote
1 answer
827 views

I don't think this is a duplicate. I have a very specific question about what happens to other threads when a signal handler is invoked. I have a multithreaded program that plays with hardware. On ...
Scott M's user avatar
  • 764
0 votes
1 answer
43 views

I am processing large text files for data(>40MB) and doing it serially was taking a lot of time. I decided to use the python 3.5 multiprocessor package. When it works, it is significantly faster but ...
alphaXed's user avatar
0 votes
0 answers
166 views

How to pass a socket descriptor to another process through shared memory? I pass the socket handle to control the process (getting there right handle value), then passes the handle of the control to ...
user avatar
0 votes
1 answer
195 views

I've just started to study the pthread API. I've been using different books and websites, and judging from what they all report, pthread synchronization functions (e.g. those involving mutexes) all ...
Matteo's user avatar
  • 184
0 votes
2 answers
318 views

I have this function containing nested loops. I need to parallelise for faster execution of code. def euclid_distance(X,BOW_X): d3=[] d2=[] for l in range(len(X)): for n in ...
ajit_gaikwad's user avatar
1 vote
2 answers
2k views

I just bumped into some weird performance "issue"/"gain" with python3. The following code loads 5 weight matrices and applies them to a fairly large dataset. While doing so it writes each row out to ...
user avatar
0 votes
1 answer
2k views

I am developing for a FCFS scheduler algorithm. But it only works with one processor. How can divide the task into 6 processors? I would need waiting queue, ready queue, etc. Each processor should ...
creativeguitar's user avatar
2 votes
1 answer
3k views

I have read that linux kernel is multi threaded and there can be multiple threads running concurrently in each core. In a SMP (symmetric multiprocessing) environment where a single OS manages all the ...
Shyam's user avatar
  • 483
0 votes
1 answer
953 views

I start the tornado server with multiple processes: server.bind(8000) server.start(0) Assuming I have a 4 processor system this should create 4 processes. For any client that connects I start a ...
PGK's user avatar
  • 1,462
0 votes
1 answer
251 views

I saw this code posted somewhere and was having trouble understanding how it could possibly work properly: out_q = Queue() chunksize = int(math.ceil(len(nums) / float(nprocs))) procs = [] for i in ...
rakrakrakrak's user avatar
0 votes
0 answers
366 views

When I try to paralellize python code I get an assertion error. Here is the code : check = Parallel(n_jobs=ncpu)(delayed(removeident)(h) for h in splitframe) individually, each element (h) in ...
pifcof's user avatar
  • 11
1 vote
1 answer
2k views

I got a mistake when I use abaqus subroutine to read file with multiple processors(cpus),could you help me to deal with this mistake.thanks a lot I want to read variables from a file ,when one cpu is ...
taishanbuzuo's user avatar
1 vote
3 answers
894 views

when using a code like this def execute_run(list_out): ... do something pool = ThreadPoolExecutor(6) for i in list1: for j in list2: pool.submit(myfunc, list_out) pool.join() ...
Bobo's user avatar
  • 971
2 votes
3 answers
209 views

perlthrtut excerpt: Note that a shared variable guarantees that if two or more threads try to modify it at the same time, the internal state of the variable will not become corrupted. However, ...
user2050516's user avatar
0 votes
1 answer
1k views

For multicore computing, one thing confusing me from the beginning is the model of multicore hardware is too abstracted from the real machine. I worked on a laptop with a single intel processor, ...
elexonics's user avatar
1 vote
1 answer
197 views

Could anyone explain how does a HCLH lock handles the new nodes that are created in the local cluster after the Cluster Master has merged the local queue into the global queue?
user avatar
0 votes
2 answers
482 views

public class RegBoolMRSWRegister implements Register<Boolean> private boolean old; private SafeBoolMRSWRegister value; public void write(boolean x ) { if (old != x ) { ...
Nitish Varshney's user avatar
1 vote
2 answers
572 views

this is my first question ever so please be gentle on me. What happens when two threads, say t1 and t2, running on separate CPU cores invoke a synchronized method on a shared object AT THE SAME TIME, ...
Michael Zyskowski's user avatar
33 votes
4 answers
28k views

I want to build 4 separate apks for 4 different Android CPU processor architectures (armeabi armeabi-v7a x86 mips) using Gradle. I have native OpenCV libraries built for 4 CPU architectures in the ...
Blukee's user avatar
  • 399
0 votes
2 answers
158 views

In multiprocessor system where each processor have its own copy of cache, how processor comes to know from where to get the copy of data. As it will be present in its own cache,also in caches of other ...
nikhil's user avatar
  • 895
0 votes
0 answers
65 views

I have assigned the processes I create to different cores by using sched_setaffinity() and created mutex as process shared: pthread_mutexattr_setpshared(&psharedm,PTHREAD_PROCESS_SHARED); This ...
sagittarius's user avatar
0 votes
1 answer
2k views

I have a question, is it possible for multiple processor machine to access data from RAM ( single ram system ) ? for eg machine has 2 processors p1, p2 which are executing in parallel , is it ...
user2227017's user avatar
1 vote
1 answer
277 views

I'm doing parallel programming in a NUMA computer (I do not have the computer yet, it's scheduled to arrive soon™). I have a pool of worker threads on each NUMA node (with processor affinity set) and ...
Emily L.'s user avatar
  • 6,031
2 votes
1 answer
290 views

The CUDA programing guide states: The CUDA architecture is built around a scalable array of multithreaded Streaming Multiprocessors (SMs). When a CUDA program on the host CPU invokes a kernel grid, ...
Bessa's user avatar
  • 117
0 votes
1 answer
87 views

I have a question about the scheduling processes of compute capability 1.3 and 2.0 gpu cards. The maximum blocks scheduled each time at a Streaming Multiprocessor are 8 in both cases, at least that's ...
user1280671's user avatar
0 votes
1 answer
65 views

I'm trying to remove file text.pckl with command os.remove('text.pckl'). I have created the file by other processor and I get error: WindowsError: [Error 32] The process cannot access the file ...
user1613397's user avatar
0 votes
1 answer
2k views

from what I understand: directory based system is more server centric design and snooping is more peer to peer centric. That is why directory based requires less messages for any read-miss as it can ...
user avatar
3 votes
2 answers
171 views

Assume I have 8 threadblocks and my GPU has 8 SMs. Then how does GPU issue this threadblocks to the SMs? I found some programs or articles suggest a breadth-first manner, that is , each SM runs a ...
Antony Yu's user avatar
0 votes
1 answer
2k views

A simple question, really: I have a kernel which runs with the maximum number of blocks per Streaming Multiprocessor (SM) possible and would like to know how much more performance I could ...
Pedro's user avatar
  • 1,394
-2 votes
2 answers
639 views

I am trying to write an os that support multiprocessor, however I don't know how to bootstrap multiprocessor for AMD, and I have searched the AMD homepage to find the MP Specification, but haven't ...
chry's user avatar
  • 1