Skip to content

Can a server attend more than 1 client? #270

Answered by Enchufa2
augustodarruda asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, it is. This is the method to add resources:

     add_resource(.env, name, capacity = 1, queue_size = Inf, mon = TRUE,
       preemptive = FALSE, preempt_order = c("fifo", "lifo"),
       queue_size_strict = FALSE, queue_priority = c(0, Inf))

As you can see, there's capacity=1 and an infinite queue by default. You can increase the capacity to be able to serve as many clients at the same time as required. In your case, setting capacity=4 will do.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@augustodarruda
Comment options

@Enchufa2
Comment options

@augustodarruda
Comment options

Answer selected by Enchufa2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants