Posts by Guilherme Viveiros • 31 points
4 posts
-
0
votes1
answer32
viewsA: java.lang.Illegalmonitorstateexception
It is necessary to give Synchronize, in this case: Synchronized(servers_conditions.get(x)) and then notifyAll.
-
0
votes1
answer32
viewsQ: java.lang.Illegalmonitorstateexception
The method LeaveServer is in a class called ServerData, and serves to put an open server when the client so wishes. The method notifyall has been implemented in another class where contains all…
-
1
votes2
answers82
viewsQ: Why does this code give Segmentation fault?
Whenever the first line of the map is filled in, a Segmentation fault, I wonder why. void newmap(int x, int y , int players){ int linha,coluna; char **map = (char **) malloc(sizeof(char*) * y); *map…
-
2
votes1
answer150
viewsQ: Problems with the Realloc
Good afternoon, I’m having difficulty creating a program that increases the size of a structure called list , similar to an array, whenever the occupancy rate of this list is more than 80% filled so…