Questions tagged [round-robin]

Process scheduling algorithm based on time slice.A time quanta is given to each process for its execution. as the time slice is expired,the other process is allowed to execute.

Round robin (RR) is one of the simplest scheduling algorithms for processes in an operating system. As the term is generally used, time slices are assigned to each process in equal portions and in circular order, handling all processes without priority (also known as cyclic executive). If a process hasn't finished by the end of the time slice, it is moved to the back of the queue so the next process in line can have its turn. Round-robin scheduling is simple, easy to implement, and starvation-free. Round-robin scheduling can also be applied to other scheduling problems, such as data packet scheduling in computer networks.

The name of the algorithm comes from the round-robin principle known from other fields, where each person takes an equal share of something in turn

312 questions
0
votes
1 answer

Experiencing latency with haproxy load balancer

I'm experiencing high latency with haproxy load balancer when backend configuration uses private network IP addresses. But when I replace backend server addresses with public IP address or Reverse DNS name I experience no latency. What is causing…
B.U
  • 129
  • 6
0
votes
1 answer

Round Robin using Elixir

I started learning Elixir and I was also looking for load balancing strategies. One of them is Round Robin and I have to implement it in a project. Yet, I haven't found too much resources on implementing Round Robin using Elixir. Could someone…
Radu Aramă
  • 195
  • 1
  • 1
  • 10
0
votes
0 answers

Merging LE certs in a "partial DNS round robin" setup

so currently we are running a sort of "partial DNS round robin" setup. We use 3 different NGINX web servers with a bunch of domains, however 6 of those domains are setup so they point to the IP of all 3 web servers. So my first issue was making…
mar91
  • 73
  • 6
0
votes
1 answer

Running multiple thread with round-robin scheduling

I'm quite new to multi-threading programming. I want to write a code with 3 different threads, each of which prints some different characters. The execution of the threads should be based on a round-robin algorithm. Suppose we have t1, t2, and t3…
Sooora
  • 171
  • 9
0
votes
1 answer

Ruby on Rails undefined method `delete_at' for "John":String

I am trying to replace an array of names for a column of names out of a database. I am new to Ruby on rails so it could be something simple. This works fine: <% students = %w(John Paul Ringo George) %> <% teams =…
Otto Heij
  • 1
  • 3
0
votes
1 answer

MaxScale cluster (master-master) setup

When deploying multiple MaxScale in a Master-Slave typology (failover from master to slave with Keepalived or similar) in front of a Galera Cluster in read-write-split mode , everything goes fine. But what about a Master-Master like typology in a…
0
votes
1 answer

I get some problems about the Round Robin Scheduling

Actually I am doing some self-study and I got stuck in calculating the waiting time of the RR scheduling. Here is the slide about RR Scheduling I am confused by the "Queue" column, at time 6, what's inside the "Queue" is "D<-C". I wonder how this is…
am5a03
  • 506
  • 7
  • 24
0
votes
0 answers

need to assign a ticket in round robin with keeping last assigned and member on leave keeping in calculation

I have four members A,B,C,D in my team (which may vary to 5-6), to whom I need to assign ticket in round robin, my last assigned was B and today round robin should start from C, but if C is on leave today then it should not assign to C and check if…
Ami
  • 1
  • 2
0
votes
1 answer

How to create this round robin chess tournament generator

I have list of players and want to create a round robin generator for chess tournaments with JavaScript. The round robin should be like in this image, shown for 10 teams and 6 teams: I tried to create separate logic for even and odd round numbers,…
Sermed mayi
  • 697
  • 7
  • 26
0
votes
1 answer

What kind of procedure is used to calculate the thread

there is a thread in the following task. How can I see whether Round Robin, FIFO or Preemptive Scheduling was used there? void High_Thread(void const *argument) { while(1) { GPIOE->DOUT_BYTE1=0xFF; } } void…
0
votes
1 answer

Varnish - cache when cookies / sessions are supplied in round robin director

I am configuring varnish for the first time, and I have come across an issue which I haven't been able to find a complete answer for so far. My config in a nutshell: server0 - varnish, be1 - apache, be2 - apache varnish pulls from the 2 backends in…
floodpants
  • 133
  • 7
0
votes
2 answers

Join lists in java in round robin fashion

I need to round robin multiple ArrayLists in java. Is there any simple way to achieve it? lists = [1,2,3], [4,5], [6,7,8] Result should be: [1,4,6,2,5,7,3,8]
Tyr1on
  • 1,999
  • 2
  • 13
  • 20
0
votes
0 answers

502 bad gateway with nginx in network calls

I set up load balancing on NGINX using the Round Robin for apache tomcat servers with two servers in my proxy.conf file: upstream appcluster1 { server IP_ADDRESS1:8000; server IP_ADDRESS2:8001; } server { location / { proxy_pass…
fairlyMinty
  • 413
  • 8
  • 22
0
votes
1 answer

New to C trying to make a Round Robin. Realloc():Invalid next size issue

My question is I believed my code was correct, however, I continue to get a realloc(): invalid next size. I've looked up how to fix realloc issues, but still getting the issue. I tried to make sure to free the values. Since I won't know the amount…
0
votes
0 answers

How to draw a Gnatt Chart and calculate Arrival and Waiting times of scheduling algorithms if a priority queue is given?

Have to draw a Gnatt Chatt and calculate the Waiting time and Turnaround time of each of the following algorithm but with the priority queue it gets confusing. Feedback (FB) q=3 Highest response ratio next Round Robin q=4 Shortest remaining…
Fidan Gill
  • 63
  • 7