X
X
x32net2016-09-20 18:11:35
go
x32net, 2016-09-20 18:11:35

How to make a mutable list?

There is a list of mirror addresses.
Several goroutines work with the list.
If one of the addresses did not answer, put it at the end of the list.
If all ended up at the end of the list, an exception.
Addresses that have become unavailable are restored after 24 hours.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
x32net, 2016-09-21
@x32net

Alternatively, a list of structures of the form: address, availability flag.
Checking/setting by flags via mutex.
Nothing moves anywhere in the list.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question