Questions tagged [lightweight-processes]

34 questions
59
votes
3 answers

Haskell lightweight threads overhead and use on multicores

I've been reading the "Real World Haskell" book, the chapter on concurrency and parallelism. My question is as follows: Since Haskell threads are really just multiple "virtual" threads inside one "real" OS-thread, does this mean that creating a lot…
user500944
48
votes
4 answers

How, if at all, do Erlang Processes map to Kernel Threads?

Erlang is known for being able to support MANY lightweight processes; it can do this because these are not processes in the traditional sense, or even threads like in P-threads, but threads entirely in user space. This is well and good (fantastic…
31
votes
8 answers

What is the difference between lightweight process and thread?

I found an answer to the question here. But I don't understand some ideas in the answer. For instance, lightweight process is said to share its logical address space with other processes. What does it mean? I can understand the same situation with 2…
Allok
  • 737
  • 1
  • 7
  • 19
14
votes
1 answer

What does BEAM stand for in iex for the Elixir programming language?

What do the letters B. E. A. and M. stand for? I recall seeing an explanation of the acronym "BEAM", but I have not managed to find it again. It comes up in error codes: ➜ gentoo iex Erlang/OTP 17 [erts-6.4.1] [source] [64-bit] [smp:8:8]…
Nathan Basanese
  • 8,475
  • 10
  • 37
  • 66
14
votes
1 answer

threads and LWP in Linux

Is this sentence correct: "All threads in Linux are LWP but not all LWP are threads". Actually, I try to understand thread realisation in Linux. pthread_create call clone syscall, but in man clone, I didn't find any reference to LWP. So, does Linux…
user275402
  • 175
  • 1
  • 1
  • 6
12
votes
2 answers

Code=134110 - Validation error missing attribute values on mandatory destination attribute

Context: app using CoreData some lightweight migration successfully performed in the past (reached the 4th iteration of the model version) client wants a new feature created a 5th model version added one single lousy new property, a non-optional…
Florin Odagiu
  • 456
  • 6
  • 16
11
votes
3 answers

What's the difference between "green threads" and Erlang's processes?

After reading about Erlang's lighweight processes I was pretty much sure that they were "green threads". Until I read that there are differences between green threads and Erlang's processes. But I don't get it. What are the actual differences?
Daniel Rikowski
  • 71,375
  • 57
  • 251
  • 329
8
votes
2 answers

Does LLVM provide any facilities for implementing "green threads"/lightweight processes?

I am looking into designing a concurrent language with support for lightweight processes ("green threads") in the vein of Erlang using LLVM as a native code generator. Lightweight processes are allocated to native OS threads in an M:N fashion, and…
7
votes
3 answers

Python generator function/object naming convention

I have a few logical processes implemented in the same class. A class instance get a generator for each process, and run() advances said generators. In my case generators don't end. How would you call foo_function and foo_object in the code…
Dima Tisnek
  • 11,241
  • 4
  • 68
  • 120
6
votes
5 answers

Erlang-style light-weight processes in .NET

Is there any way to implement Erlang-style light-weight processes in .NET? I found some projects that implement Erlang messaging model (actors model). For example, Axum. But I found nothing about light-weight processes implementation. I mean…
alexey
  • 8,360
  • 14
  • 70
  • 102
5
votes
5 answers

Strange behavior of clone

This is fairly simple application which creates a lightweight process (thread) with clone() call. #define _GNU_SOURCE #include #include #include #include #include #include #include…
lstipakov
  • 3,138
  • 5
  • 31
  • 46
5
votes
4 answers

What other systems beside Erlang are based on "Green Processes"?

I was reading this informative page on Green Thread (Wikipedia) and I wonder: what other programming systems rely on "green processes" beside Erlang? Edit: " Green Thread != Green Process " Green Process based Erlang Inferno Green Thread…
jldupont
  • 93,734
  • 56
  • 203
  • 318
4
votes
1 answer

Convert webm to mp3 using python?

Yes I know that this has been asked many many times, but the libraries on every single answer just ends up needing ffmepg. The problem with that is that the file size increases dramatically when I include ffmpeg to my project, and I just don't want…
Andy_ye
  • 560
  • 1
  • 7
  • 19
3
votes
2 answers

What differ CoAP and LwM2M?

I study about IoT protocol CoAP, MQTT, LwM2M. I was able to know a little about CoAP and MQTT. But I do not know what LwM2M is. I do not know what's different from CoAP. I just thought that LwM2M is not a protocol with some format but a system…
NWOWN
  • 399
  • 1
  • 4
  • 17
2
votes
1 answer

Trading veiw Lightweight graph set timescale at one hour

I am currently using lightweight chart for my candlestick graph but i am facing an issue . How can i set my data in candle stick. My data. "data": [ { "open": "1.18384", "high": "1.1845", "low": "1.18368", "close": "1.18429", …
1
2 3