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

first try #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

first try #1

wants to merge 2 commits into from

Conversation

92pIus2
Copy link
Collaborator

@92pIus2 92pIus2 commented Dec 3, 2023

No description provided.

@92pIus2 92pIus2 requested a review from JonFir December 3, 2023 17:37
@@ -2,20 +2,88 @@ import Foundation

class ThreadSafeArray<T> {
private var array: [T] = []
private let conQueue = DispatchQueue(label: "vk.itmo.hw4.thread_safe_array_queue", attributes: .concurrent)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DispatchQueue не очень быстрое решение, даже в задании написано что их лучше не использовать)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ой, не увидел этого в задании, а OperationQueue тоже нельзя использовать в этом задании?

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.

2 participants