#semaphore problem

27 messages ยท Page 1 of 1 (latest)

naive gullBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

tribal burrow
#

if you post your code as text people will be more likely to help you

haughty oracle
#

the code is on the zip

#

i can't post hundred of code lines

#

as text

tribal burrow
#

Then post the bits that you think are a problem

haughty oracle
#

i post a zip to be dowload

#

same for pdf

tribal burrow
#

Well people might look at the rest of your code if they need to, but I'm not going to search through hundreds of lines of code that I haven't written with the hope of finding a bug

#

If you've written the code, you'll have a better idea of where the buggy areas might be

#

And then people here can look at those areas

#

Also discord auto embeds text files, so you can upload the files and they can be viewed straight in discord

#

Which is easier than downloading a (3mb???) Zip

haughty oracle
#

so how can you solve this problem? you can't. You only need to read the module i post (as they are the main modules (the methods are pretty speakers) and pdf (from 5.0 to 5.5) for understand the problem and say me why the semaphores have a behaviour like that)

#

my problem has to do with init_port (port.c), init_ship (ship.c) and cleanup_and_exit (master.c)

tribal burrow
#

reading blurry screenshots is hard and not mobile friendly

#

i'm not saying that no one will help you

#

i'm saying that when you have a problem, you should make it as easy as possible for people to help you

#

and going through blurry screenshots, navigating a project structure, and reading an assignment pdf is a lot of work

#

yes, but for people trying to help you, it takes a lot of time to dig through all the information and find the relevant stuff

#

(btw, you can paste it in a better format:

int main(void)
{
  printf("Like this\n");
  return 0;
}

to preserve all characters + syntax highlighting

#

with triple backticks and language after first set, e.g.:

```c
code here
```

haughty oracle
naive gullBOT
#

@haughty oracle

Please Do Not Delete Posts!

Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.