Questions tagged as 'fila'

2
answers

How to implement a queue using two stacks

Hello, I need to implement a queue using two stacks, that is, I need to insert an integer in stack 1, and when I remove an element all the items in stack 1 must be transferred to stack 2, then make it look like with a queue. Items in stack 1 c...
asked by 08.09.2018 / 23:01
2
answers

Problems assigning values to variables in an object

I need to pass variable data to another class called Fila.java. I have a vector of type that receives objects, so in the main class I created an object that I initialized as follows: public class Dados{ int menu = 20,i=0; String produ...
asked by 24.10.2017 / 04:16
3
answers

One process at a time PHP

I would like to know if there is a way to create a queue of processes. For example, whenever I run the processar.php file, if it is already running, it will wait to run after the other is finished. Being run only when "free";     
asked by 19.07.2016 / 19:55
1
answer

Rails sidekiq in production

I am trying to build and produce an APP that uses Redis and Sidekiq for jobs in queues. In development it works as follows. Rodo the command in the terminal: bundle exec sidekiq -q default and let it roll. When I send the processes to the q...
asked by 21.03.2016 / 14:20
1
answer

Queue implementation in ANSI C

I have a code (end of question) that allows the handling of a queue in ANSI C , my question is as follows: The code declares a data type itself to store the queue data and has a function to create a queue, however it uses in the integer exampl...
asked by 18.08.2016 / 22:47
1
answer

Student Row. Help in structuring the code

My question is in case 1 , how to include elements in the queue, in this case, mat and media . Here is the code below: #include <iostream> #include <cstdlib> #define tamanho 20 using namespace std; struct Aluno{...
asked by 13.05.2015 / 20:01
1
answer

No data in the queue

In my program, I need to use a queue storage function inside another function, but I can not run, it does not store. I switched from DevC ++ to CodeBlocks and it looks like this:    "expected 'struct Row' but argument is of type 'struct FILA...
asked by 12.07.2016 / 03:11
2
answers

What determines a variable as an array in Python?

I'm studying about queues in Python and I'm using the object deque of the module collections . So, in Python I can access the values of an array by index simply by typing: array = [1, 2, 3] arra[0] # 1 However, the deque o...
asked by 04.09.2018 / 21:14
1
answer

Stacking and stacking with queue in javascript

I have to stack 3 values that are entered by the user through the prompt, and then unpack, showing the result on the screen. The problem is that after the user types the 3 values, the following word appears 3 times, instead of the values:...
asked by 08.10.2017 / 02:13
1
answer

Cancel event queue in Javascript / Jquery

So, I have a loop that will awaken some 10 functions that are AJAX requests, in functions, which encompasses AJAX requests is a setTimeout() , what happens is that the loop is executed on time, and every time 10 seconds (as I have determine...
asked by 26.03.2015 / 19:46