Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
E
G
H
I
M
O
P
R
S
T
U
A
Affinity
- Class in
org.mentaaffinity
The main class to set and control many different affinity strategies.
Affinity()
- Constructor for class org.mentaaffinity.
Affinity
AffinityException
- Exception in
org.mentaaffinity
Any kind of affinity exception related to MentaAffinity.
AffinityException()
- Constructor for exception org.mentaaffinity.
AffinityException
AffinityException(Throwable)
- Constructor for exception org.mentaaffinity.
AffinityException
AffinityException(String)
- Constructor for exception org.mentaaffinity.
AffinityException
AffinityException(String, Throwable)
- Constructor for exception org.mentaaffinity.
AffinityException
B
BasicBindToProcessor
- Class in
org.mentaaffinity.sample
BasicBindToProcessor()
- Constructor for class org.mentaaffinity.sample.
BasicBindToProcessor
bind()
- Static method in class org.mentaaffinity.
Affinity
This method actually makes the system call to set the thread affinity.
bindToAnyFreeCore(Thread)
- Static method in class org.mentaaffinity.
Affinity
Looks for a core that has no threads running and bound this thread to it.
bindToAnyFreeCore(int, Thread)
- Static method in class org.mentaaffinity.
Affinity
Same thing as bindToAnyFreeCore(Thread t) except that you provide the chip from where to get a core.
bindToAnyFreeProcessor(Thread)
- Static method in class org.mentaaffinity.
Affinity
Choose the first free logical processor available and bind to this thread.
bindToAnyFreeProcessor(int, Thread)
- Static method in class org.mentaaffinity.
Affinity
Choose the first free logical processor available in that chip and bind the thread to it.
bindToDifferentChips(Thread, Thread)
- Static method in class org.mentaaffinity.
Affinity
Make sure that both threads are bound to separate physical processors.
bindToDifferentChips(int, Thread, int, Thread)
- Static method in class org.mentaaffinity.
Affinity
Bind the threads to the provided physical processors.
BindToDifferentChips
- Class in
org.mentaaffinity.sample
If you have a machine with more than one physical processor, you may want to make sure each thread land on a separate physical processor.
BindToDifferentChips()
- Constructor for class org.mentaaffinity.sample.
BindToDifferentChips
bindToDifferentCores(Thread, Thread)
- Static method in class org.mentaaffinity.
Affinity
Make sure both threads will NOT be bound to the same core.
bindToDifferentCores(int, Thread, Thread)
- Static method in class org.mentaaffinity.
Affinity
Same thing as bindToDifferentCores(Thread t1, Thread t2) except that you can provide the physical processor.
BindToDifferentCores
- Class in
org.mentaaffinity.sample
If your architecture supports hyper-threading you may want to make sure that two threads do not end up in the same core.
BindToDifferentCores()
- Constructor for class org.mentaaffinity.sample.
BindToDifferentCores
bindToProcessor(int, Thread)
- Static method in class org.mentaaffinity.
Affinity
Bind the thread to a single logical processor.
bindToSameCore(Thread, Thread)
- Static method in class org.mentaaffinity.
Affinity
Finds a free core and bind both threads to both of its logical processors.
bindToSameCore(int, Thread, Thread)
- Static method in class org.mentaaffinity.
Affinity
Same thing as bindToSameCore(Thread t1, Thread t2) except that you can provide the physical processor.
BindToSameCore
- Class in
org.mentaaffinity.sample
If your architecture supports hyper-threading you may want to assign two different threads to the same core so they share the same L1 cache.
BindToSameCore()
- Constructor for class org.mentaaffinity.sample.
BindToSameCore
BindToWholeCore
- Class in
org.mentaaffinity.sample
If your architecture supports hyper-threading but you don't want another thread sharing the core with your high-priority thread you can assign a thread to the WHOLE core.
BindToWholeCore()
- Constructor for class org.mentaaffinity.sample.
BindToWholeCore
C
Chip
- Class in
org.mentaaffinity
An object representing a physical processor.
Chip(int, ArrayList<Core>)
- Constructor for class org.mentaaffinity.
Chip
Core
- Class in
org.mentaaffinity
An object representing a processor core, for multi-core processors.
Core(int, int, ArrayList<Processor>)
- Constructor for class org.mentaaffinity.
Core
E
equals(Object)
- Method in class org.mentaaffinity.
Chip
equals(Object)
- Method in class org.mentaaffinity.
Core
equals(Object)
- Method in class org.mentaaffinity.
Processor
G
getCause()
- Method in exception org.mentaaffinity.
AffinityException
getChipId()
- Method in class org.mentaaffinity.
Core
getChipId()
- Method in class org.mentaaffinity.
Processor
getCore(int)
- Method in class org.mentaaffinity.
Chip
getCoreId()
- Method in class org.mentaaffinity.
Core
getCoreId()
- Method in class org.mentaaffinity.
Processor
getCores()
- Method in class org.mentaaffinity.
Chip
getFreeCore()
- Method in class org.mentaaffinity.
Chip
getFreeProcessor()
- Method in class org.mentaaffinity.
Core
getFullyFreeCore()
- Method in class org.mentaaffinity.
Chip
getId()
- Method in class org.mentaaffinity.
Chip
getId()
- Method in class org.mentaaffinity.
Processor
getMask()
- Method in class org.mentaaffinity.
Processor
getNumberOfFreeCores()
- Method in class org.mentaaffinity.
Chip
getNumberOfProcessors()
- Method in class org.mentaaffinity.
Core
getProcessors()
- Method in class org.mentaaffinity.
Core
getStatusString()
- Method in class org.mentaaffinity.
Processor
getThread()
- Method in class org.mentaaffinity.
Processor
H
hasFreeCore()
- Method in class org.mentaaffinity.
Chip
hasFreeProcessor()
- Method in class org.mentaaffinity.
Core
hasFullyFreeCore()
- Method in class org.mentaaffinity.
Chip
hashCode()
- Method in class org.mentaaffinity.
Chip
hashCode()
- Method in class org.mentaaffinity.
Core
hashCode()
- Method in class org.mentaaffinity.
Processor
I
init()
- Static method in class org.mentaaffinity.
Affinity
Init MentaAffinity by loading the /proc/cpuinfo file.
isAvailable()
- Static method in class org.mentaaffinity.
Affinity
Checks if MentaAffinity is available for your JVM.
isBound()
- Method in class org.mentaaffinity.
Processor
isExcluded()
- Method in class org.mentaaffinity.
Processor
isFree()
- Method in class org.mentaaffinity.
Processor
isFullyFree()
- Method in class org.mentaaffinity.
Core
M
main(String[])
- Static method in class org.mentaaffinity.sample.
BasicBindToProcessor
main(String[])
- Static method in class org.mentaaffinity.sample.
BindToDifferentChips
main(String[])
- Static method in class org.mentaaffinity.sample.
BindToDifferentCores
main(String[])
- Static method in class org.mentaaffinity.sample.
BindToSameCore
main(String[])
- Static method in class org.mentaaffinity.sample.
BindToWholeCore
O
org.mentaaffinity
- package org.mentaaffinity
org.mentaaffinity.sample
- package org.mentaaffinity.sample
P
printSituation()
- Static method in class org.mentaaffinity.
Affinity
Prints to System.out a nice outlook of the logical processors situation.
printSituation()
- Method in class org.mentaaffinity.
Chip
Processor
- Class in
org.mentaaffinity
An object representing a logical processor, the smallest processing unit capable of running only one thread at a time.
Processor(int, int, int, boolean)
- Constructor for class org.mentaaffinity.
Processor
R
rootCause
- Variable in exception org.mentaaffinity.
AffinityException
S
sameChip(Processor)
- Method in class org.mentaaffinity.
Processor
sameChipDifferentCore(Processor)
- Method in class org.mentaaffinity.
Processor
sameCore(Processor)
- Method in class org.mentaaffinity.
Processor
setEnable(boolean)
- Static method in class org.mentaaffinity.
Affinity
By default affinity is enabled but you can turn it off if you want to, for example if you are running in a platform other than Linux.
T
toString()
- Method in class org.mentaaffinity.
Chip
toString()
- Method in class org.mentaaffinity.
Core
toString()
- Method in class org.mentaaffinity.
Processor
U
unbind()
- Static method in class org.mentaaffinity.
Affinity
This method must be called when the thread is about to die.
A
B
C
E
G
H
I
M
O
P
R
S
T
U
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
Copyright © 2012. All Rights Reserved.