Skip to content

Paral make it so 3 thr v2#7

Open
kindfairy wants to merge 8 commits intokamyshova:masterfrom
kindfairy:paral-makeItSo-3-thr-v2
Open

Paral make it so 3 thr v2#7
kindfairy wants to merge 8 commits intokamyshova:masterfrom
kindfairy:paral-makeItSo-3-thr-v2

Conversation

@kindfairy
Copy link
Copy Markdown

Description

Избавился от Semaphore
Использую два SingleThreadExecutor - раздатчика и две BlockingQueue для задач
Для чтения ref и выполнения acceptRead - два других SingleThreadExecutor
Работа с walker и programs - потокобезопасна, т.к. осуществляется в один поток. Также последовательность их выполнения совпадает с последовательностью их выполнения в последовательной программе.


Checklist (never delete this)

Never delete this, it is our record that procedure was followed. If you find that for whatever reason one of the checklist points doesn't apply to your PR, you can leave it unchecked but please add an explanation below.

Content

  • Added or modified tests to cover changes and any new functionality
  • Edited the README / documentation (if applicable)
  • All tests passing on Travis

Review

  • Final thumbs-up from reviewer
  • Rebase, squash and reword as applicable

For more detailed guidelines, see https://github.com/broadinstitute/picard/wiki/Guidelines-for-pull-requests

	modified:   src/main/java/picard/analysis/CollectInsertSizeMetrics.java
	modified:   src/main/java/picard/analysis/CollectGcBiasMetrics.java
	modified:   src/main/java/picard/analysis/CollectInsertSizeMetrics.java
…e from walker

and executing method accpetRead
Created Semaphore to limit number of in-memory objects
Tested. Works.
Deleted debug output (measuring time), wrote comments
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

Successfully merging this pull request may close these issues.

1 participant