Skip to main content

Questions tagged [threads]

0 votes
0 answers
77 views

Firstly this is not a question about programming. A book I am reading on C programming explains briefly the steps of execution of a C program after its compilation. It states the following, To be ...
Quorthon's user avatar
0 votes
1 answer
72 views

I was watching a presentation related to the MuJoCo simulator (and other topics which were more relevant for the presentation itself) and at one moment in the presentation it is mentioned that MuJoCo ...
pdaranda661's user avatar
2 votes
2 answers
579 views

I had a discussion with a C++ developer on whether aborting a thread causes memory leaks. His opinion on how aborting a thread works was all destructors of the stack objects of the thread to abort ...
Thomas W.'s user avatar
  • 271
0 votes
1 answer
177 views

Following bar graph shows maximum percentage cpu utilization of F16sv2 (16vcpu &32GB) azure virtual machine in last 30 days. Only sometimes CPU usage goes more than 60 percentage. How to find the ...
Amal's user avatar
  • 1
0 votes
1 answer
1k views

In multithreading models, we have a two-level model in which we multiplexes many user-level threads to a smaller or equal number of kernel threads but also allows a user-level thread to be bound to a ...
Ahmed Mohamed's user avatar
0 votes
1 answer
199 views

I was experimenting with the concept of threading in java, we have a method setPriority, using which we can set thread priority. In official documentation it is given as below, But while seeing in ...
Niraj Jain's user avatar
3 votes
2 answers
479 views

I have seen this C code showing an implentation of Peterson's Critical Section algorithm. It is obviously skeletal and hardwired for two threads but the logic is supposed to be correct in detail. ...
pitosalas's user avatar
  • 133
0 votes
3 answers
938 views

I'm studying for an exam and have run into a problem that I do not understand. The main program starts two threads that execute the following program concurrently, whenever both threads terminate the ...
LinkedLists101's user avatar
1 vote
0 answers
58 views

I know that a thread in a "running" state is put in a "wait" state if the thread itself needs I/O operation. Now I'm asking if even a cache miss implies that a thread is put in a &...
Bender's user avatar
  • 367
2 votes
1 answer
95 views

We're going over threading models in my freshman CS class. Are there any examples of operating systems that use exclusively user threads (N:1)? It looks like 1:1 is far and away the most common model ...
James's user avatar
  • 21
2 votes
2 answers
1k views

I was surprised to hear that the threading module from python uses OS level threads. From what I know, OS level threads are more expensive (but can achieve parallelism) meanwhile green threads are ...
OneRaynyDay's user avatar
0 votes
1 answer
171 views

I'm pretty sure there's a textbook solution to this problem, but I haven't figured it out. I have fixed-size blocks of data arranged in a sequence: block 0, block 1, etc.. There are reader threads ...
ccleve's user avatar
  • 129
1 vote
1 answer
612 views

I am confused as to why 2 threads waiting for a lock from each other will result in a deadlock. Let's say I have a Thread 1 that needs to execute contents in Lock 1 and then Lock 2 and a Thread 2 that ...
Adam Lee's user avatar
  • 213
0 votes
1 answer
176 views

I'm a bit confused about kernel-threads, I searched a lot at the Internet, SOF and here but found very diverse and conflict answers. What is the need for Kernel threads? Are they threads that are only ...
osama.bmaq's user avatar
0 votes
1 answer
135 views

the question is related to networking frameworks; callback-based approach requires you to call a callback function every time you receive a new data packet; this is not a good approach for high-load ...
ivan866's user avatar
  • 111

15 30 50 per page
1
2 3 4 5
8