Search Results

Search: Posts Made By: digitalbrainiac
3,757
Posted By digitalbrainiac
That seems a bit beyond me DGPickett, lol. But I...
That seems a bit beyond me DGPickett, lol. But I do see how multi-threading would make searching multiple things a lot faster.

I'm planning on using multi-threads for my upcoming Digital...
3,757
Posted By digitalbrainiac
yes it does. give it a try. the command line...
yes it does. give it a try.

the command line arguements are:

<run duration> <delay per thread> <num of producers> < num of consumer > <yes/no>

yes/no is snapshots of buffer.
3,757
Posted By digitalbrainiac
Thanks all for your help! After much...
Thanks all for your help!

After much trial/error, here's my final code: (it's not the prettiest)

>_> forgot to remove that <sched.h>...


/*******************
* <removed>
* Operating...
3,757
Posted By digitalbrainiac
I thought I was doing that essentially? My...
I thought I was doing that essentially?

My Producer's mutex lock is after wait, with my Consumer's mutex lock after it's wait. Both have the unlock before the post.

Is it the type of semaphores...
3,757
Posted By digitalbrainiac
So no one has any idea?
So no one has any idea?
3,757
Posted By digitalbrainiac
I'm sorry but I just don't know what you're...
I'm sorry but I just don't know what you're trying to say.

I'm still very new to threads and locks.
3,757
Posted By digitalbrainiac
Bounded Buffer is hanging, tried all I can. (C++)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:
My problem is...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 01:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy