Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TPL Joinblock sample works on .NET Framework 4.6, but has thread issue on Core #27283

Closed
Petermarcu opened this issue Aug 31, 2018 · 3 comments
Closed

Comments

@Petermarcu
Copy link
Member

@ZeroPKI commented on Mon Aug 20 2018

Issue Title

I'm using the following sample on .NET Framework 4.6 and it runs properly, however when I use the same code with .Core, the other threads never get called.
https://docs.microsoft.com/en-us/dotnet/standard/parallel-programming/how-to-use-joinblock-to-read-data-from-multiple-sources

General

All information is included in the link
https://docs.microsoft.com/en-us/dotnet/standard/parallel-programming/how-to-use-joinblock-to-read-data-from-multiple-sources

Simply compare the output between a .NET Core and .NET Framework console app


@MarcoRossignoli commented on Tue Aug 21 2018

i think i better move this to https://github.com/dotnet/corefx where core TPL dataflow lives https://github.com/dotnet/corefx/tree/master/src/System.Threading.Tasks.Dataflow

@MarcoRossignoli
Copy link
Member

MarcoRossignoli commented Sep 6, 2018

I did some test...and i see output from both version.
Could you attach your sample?
TPLTest.zip

/cc @ZeroPKI

@tarekgh
Copy link
Member

tarekgh commented Oct 5, 2018

I couldn't repro it either. I am seeing net core is producing the output as expected. maybe trying to extend the timeout at the end of main method could help in your case? or if you can share the repro and what environment you are running on that may help. I am closing the issue but feel free to respond back with any question or request.

@tarekgh tarekgh closed this as completed Oct 5, 2018
@tarekgh
Copy link
Member

tarekgh commented Oct 5, 2018

just for the record, here is the output I am getting in netcore app:

Network worker: using resources...
Network worker: finished using resources...
Network worker: using resources...
Network worker: finished using resources...
File worker: using resources...
File worker: finished using resources...
Network worker: using resources...
Network worker: finished using resources...
Network worker: using resources...
Network worker: finished using resources...
File worker: using resources...
File worker: finished using resources...
File worker: using resources...

@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 3.0 milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants