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

Multithreading not working #60

Open
walter-weinmann opened this issue Dec 19, 2021 · 0 comments
Open

Multithreading not working #60

walter-weinmann opened this issue Dec 19, 2021 · 0 comments

Comments

@walter-weinmann
Copy link

Code:

        @threads for partition_key = 1:benchmark_number_partitions
            println("multithreaded threadid=$(threadid())")
            run_select_helper(
                size(bulk_data_partitions[partition_key], 1),
                partition_key,
                sql_select,
                statements[partition_key],
                trial_number,
            )
        end

Source: https://github.com/KonnexionsGmbH/ora_bench/blob/master/lang/julia/OraBenchJdbc.jl

Protocol:

always the same tread id !

Start trial no. 1
multithreaded threadid=1
Start insert partition_key=1)
End   insert partition_key=1)
multithreaded threadid=1
Start insert partition_key=2)
End   insert partition_key=2)
multithreaded threadid=1
Start insert partition_key=3)
End   insert partition_key=3)
multithreaded threadid=1
Start insert partition_key=4)
End   insert partition_key=4)
multithreaded threadid=1
Start insert partition_key=5)
End   insert partition_key=5)
multithreaded threadid=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant