Posts by Gabriel Henrique • 101 points
8 posts
-
0
votes0
answers20
viewsQ: What is the best way to synchronize these C threads?
Considering the following code, what is the best way to synchronize the threads that add the vectors with the threads that populate the vectors ? I have tried several ways, such as mutex and/or…
-
1
votes1
answer36
viewsQ: Pthread_join not working as it should to popular a C array
I have the following code: #include <stdio.h> #include <pthread.h> #include <semaphore.h> #include <locale.h> #include <time.h> //declaração das variáveis globais float…
-
1
votes0
answers48
viewsQ: Local variable referencing to the same object of a global variable is changed, but the global is not
I have the following problem: I’m making a Red-Black Tree in Python, and when I delete a root that has only one child, the problem happens, below follows my code BLACK = 0 RED = 1 class No(): def…
pythonasked Gabriel Henrique 101 -
0
votes1
answer58
viewsQ: My Java Object is not persisted with all its XML attributes
I’m using the JAXB API. I can persist right a java object in xml but only persist the attribute "Name" the rest of the attributes are not persisted. Here are my codes: This is the method that saves…
-
2
votes1
answer63
viewsQ: How do I tell the compiler that every Observablelist<O> I pass as an argument will contain a certain method?
I have the following research method: public class Pesquisa { private static <O> ObservableList<O> pesquisarPorNome(ObservableList<O> listaObservavel, String pesquisa) {…
-
1
votes1
answer404
viewsQ: When I push to git, characters with "Place" accents. How to resolve?
I have a project in Java, and for example: Type in some line of my code "Not set", when I push to git it gets "N the set" or something worse. Is there any way to avoid this in any git configuration,…
-
-1
votes1
answer253
viewsQ: Does Oracle’s JDK 13 have Javafx?
I saw that now Oracle has a JDK13, I have to wonder if it comes with a Javafx, as in JDK8 came with the Javafx8, thank you.
-
2
votes1
answer363
viewsQ: I can’t remove leaf in binary tree
I’m trying to remove a leaf from the tree, I made a code that apparently, in my head is right, only it doesn’t remove the element I want. Here is my class No: package arvore; public class No {…
javaasked Gabriel Henrique 101