fork-join Questions

2

I was studying the oracle docs about the Fork/Join framework when i came across this constructor of ForkJoinPool : ForkJoinPool(int parallelism). The docs said that this was the level of parallelis...
Howbeit asked 13/1, 2013 at 8:15

4

Solved

Following up on How to use MDC with thread pools? how can one use MDC with a ForkJoinPool? Specifically, I how can one wrap a ForkJoinTask so MDC values are set before executing a task?
Glidden asked 16/3, 2016 at 3:42

2

Solved

In the Observables forkJoin documentation, it says that args can be an array but it doesn't list an example doing so: https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operator...
Medius asked 27/2, 2016 at 22:50

4

Solved

I am using Rxjs in an angualr-cli application. in viewer.component.ts //Other Imports import { Observable } from 'rxjs/Observable'; //omitting for brevity export class ViewerComponent implem...
Aboveground asked 25/6, 2017 at 6:32

1

I am investigating some performance issues in an app using ForkJoinPool. We've been at it with Dynatrace and there are indications of some blocking operations which last way too long. I cannot find...
Crabbe asked 6/12, 2019 at 9:43

5

As far as I had understood ForkJoinPool, that pool creates a fixed number of threads (default: number of cores) and will never create more threads (unless the application indicates a need for those...
Lorenelorens asked 29/5, 2012 at 10:44

3

Solved

A thread starvation deadlock occurs in a normal thread pool if all the threads in the pool are waiting for queued tasks in the same pool to complete. ForkJoinPool avoids this problem by stealing wo...

2

Solved

In my Angular2-typescript app, I'm using forkJoin to return an Observable only once all the parallel HTTP calls were made. Issue: the subscription callback keeps being executed indefinitely Here ...
Unselfish asked 4/11, 2016 at 18:34

4

Can someone explain what Fork/Join is?
Nik asked 19/8, 2010 at 17:47

11

Solved

What are the benefits of using the new fork/join framework over just simply splitting the big task into N subtasks in the beginning, sending them to a cached thread pool (from Executors) and waitin...
Amoreta asked 28/10, 2011 at 8:31

1

I am looking for an implementation of the fork-join model for Python. As Java's ForkJoinPool, it should allow to split (fork) the work of a task into several sub tasks recursively. Once the sub tas...
Spectroscopy asked 1/3, 2019 at 5:28

3

Solved

What is the low-level difference among using: ForkJoinPool = new ForkJoinPool(X); and ExecutorService ex = Executors.newWorkStealingPool(X); Where X is the desired level of parallelism, i.e. thre...
Violetavioletta asked 27/12, 2016 at 0:2

1

Solved

Disclaimer: It's the first time I'm using Java's Fork-Join framework, so I'm not 100% sure I'm using it correctly. Java is also not my main programming language, so this could also be relevant. ...
Sontag asked 1/10, 2018 at 13:2

2

Solved

I wanted to try out ForkJoinPool in Java 8 so i wrote a small program for searching all the files whose name contains a specific keyword in a given directory. Program: public class DirectoryServi...
Lover asked 2/8, 2018 at 10:1

6

Solved

I just finished reading this post: What's the advantage of a Java-5 ThreadPoolExecutor over a Java-7 ForkJoinPool? and felt that the answer is not straight enough. Can you explain in simple la...
Leifleifer asked 16/1, 2014 at 8:21

2

Solved

I am querying a single API endpoint multiple times except with different parameters. For what ever reason some of these requests may fail and return a 500 error. If they do i still want the other r...
Billow asked 2/5, 2018 at 8:15

1

Solved

I have some class which is not thread safe: class ThreadUnsafeClass { long i; long incrementAndGet() { return ++i; } } (I've used a long as the field here, but we should think of its field as...

1

Solved

I am trying to implement a divide-and-conquer solution to some large data. I use fork and join to break down things into threads. However I have a question regarding the fork mechanism: if I set my...
Barytone asked 8/1, 2018 at 20:28

2

Solved

Here, I've used forkJoin from rxjs to subscribe to an array of observables parallelly. But I want to subscribe to them one by one, What will be the best solution? Below is my code : var observabl...
Bluefarb asked 24/9, 2017 at 9:13

2

Solved

I'm experiencing a TypeScript type check failure when using the forkJoin operator form RxJS. This is the code in question: let products = this.http.get(productUrl, { headers: this.headers }) .ma...
Pinniped asked 17/8, 2017 at 15:9

1

Solved

I have service: export class ConfigService { private _config: BehaviorSubject<object> = new BehaviorSubject(null); public config: Observable<object> = this._config.asObservable(); ...
Donata asked 6/4, 2017 at 15:1

2

Solved

I can't seem to figure out a way to catch/handle errors inside forkJoin while trying to do route resolve. I've created a route resolver for Account page and It should return 2 requests before rou...
Unrivalled asked 13/3, 2017 at 9:43

2

I am using Fork join pool in java for multitasking. Now i came across a situation where, for every task, I need to hit a url then wait for 10 minutes and then again hit another url to read the data...
Fortner asked 22/12, 2016 at 5:51

2

In Java 8 there are two ways of starting asynchronous computations - CompletableFuture and ForkJoinTask. They both seem fairly similar - the inner classes of CompletableFuture even extend ForkJoinT...
Sketch asked 26/11, 2015 at 17:43

1

Solved

I use github API to load user and his followers data in my angular 2 app, but view renders before ngOnInit finishes load data and because of this I receive: Cannot read property of undefined...
Rigadoon asked 1/6, 2016 at 9:49

© 2022 - 2024 — McMap. All rights reserved.