This is a split board - You can return to the Split List for other boards.

Help with my C++ assignment please?

  • Topic Archived
  1. Boards
  2. PC
  3. Help with my C++ assignment please?
2 years ago#11
i don't think i learned proc threads until my junior year and i went to a decent school

wtf man
---
GOAT
2 years ago#12
JESSE_PlNKMAN posted...
It says

"Write a parallel memory allocator that uses thread-local binned free lists to provide appropriate-size blocks via malloc."

Where do I even begin?


What's the matter ? Too busy betraying the closet thing to a father figure you've ever had that you can't pay attention in class?

Maybe Hank will help you with your homework.
---
i5-3570k | ASRock Z77 Extreme6 | EVGA 560Ti 448 Classified x2 SLI | 16GB G.Skill Ares | Corsair 600T White | 212 EVO | HX750
#13
(message deleted)
2 years ago#14
From: JESSE_PlNKMAN | #007
This is the intro to programming 101 class at my local community college. Our malloc implementation is due by friday. HLEP!!

are you sure you didn't registered for cs300 by mistake?
#15
(message deleted)
#16
(message deleted)
2 years ago#17
ae yo, It's Jesse Pinkman b****. Trying some of that computer s***.

Why donchu call Skinny Pete. I'm sure he can help you out
---
Sketch Blog - paperuni.blogspot.com
2 years ago#18
I did 3 terms of C++ and never had to do something like this. I have no idea what a "binned free list" would be.

I looked it up and it sounds like a linked list of free space which you un-link an element to use memory and then re-link to free memory up again or something. No clue what "binned" means though:
http://en.wikipedia.org/wiki/Free_list
---
The man keeps us down
because he likes to see us frown
2 years ago#19
capgamer posted...
I did 3 terms of C++ and never had to do something like this. I have no idea what a "binned free list" would be.

I looked it up and it sounds like a linked list of free space which you un-link an element to use memory and then re-link to free memory up again or something. No clue what "binned" means though:
http://en.wikipedia.org/wiki/Free_list


Alright, ruse over. This was a parody topic based on something I actually did at school, just wanted to see if anyone had any idea how to even do this. Basically:

So a free list of blocks is nice when a program only ever wants to allocate X bytes of memory at a time. Of course this is unrealistic - perhaps they need 20 one time and 2000 elsewhere. So instead of having a single list, you have several "bins", i.e. an array of pointers where each element represents a linked list of blocks. Bins[0] holds blocks of size 2^0, Bins[1] blocks of size 2, Bins[2] = 4, and so forth. This strategy works pretty well for allocating and re-allocating blocks.
2 years ago#20
JESSE_PlNKMAN posted...
capgamer posted...
I did 3 terms of C++ and never had to do something like this. I have no idea what a "binned free list" would be.

I looked it up and it sounds like a linked list of free space which you un-link an element to use memory and then re-link to free memory up again or something. No clue what "binned" means though:
http://en.wikipedia.org/wiki/Free_list


Alright, ruse over. This was a parody topic based on something I actually did at school, just wanted to see if anyone had any idea how to even do this. Basically:

So a free list of blocks is nice when a program only ever wants to allocate X bytes of memory at a time. Of course this is unrealistic - perhaps they need 20 one time and 2000 elsewhere. So instead of having a single list, you have several "bins", i.e. an array of pointers where each element represents a linked list of blocks. Bins[0] holds blocks of size 2^0, Bins[1] blocks of size 2, Bins[2] = 4, and so forth. This strategy works pretty well for allocating and re-allocating blocks.

pinkman you need to lay off the blue meth
---
Chief Keef makes music for people who spin around in circles to get dizzy
  1. Boards
  2. PC
  3. Help with my C++ assignment please?

Report Message

Terms of Use Violations:

Etiquette Issues:

Notes (optional; required for "Other"):
Add user to Ignore List after reporting

Topic Sticky

You are not allowed to request a sticky.

  • Topic Archived