File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -129,21 +129,21 @@ try (final AffinityLock al = AffinityLock.acquireLock()) {
129129----
130130In this example, the library will prefer a free CPU on the same Socket as the first thread, otherwise it will pick any free CPU.
131131
132- === Getting the thread id.
132+ === Getting the thread id
133133You can get the current thread id using
134134[source, java]
135135----
136136
137137int threadId = AffinitySupport.getThreadId();
138138----
139- === Determining which CPU you are running on.
139+ === Determining which CPU you are running on
140140You can get the current CPU being used by
141141[source, java]
142142----
143143
144144int cpuId = AffinitySupport.getCpu();
145145----
146- === Controlling the affinity more directly.
146+ === Controlling the affinity more directly
147147The affinity of the process on start up is
148148[source, java]
149149----
@@ -223,7 +223,7 @@ try (AffinityLock lock = AffinityLock.acquireLockLastMinus(n)) {
223223
224224I have the cpuId in a configuration file, how can I set it using a string?
225225
226- === Answer: use one of the following.
226+ === Answer: use one of the following
227227
228228[source,java]
229229----
You can’t perform that action at this time.
0 commit comments