# Vivado多线程综合问题

Vivado% set_param general.maxThreads <new limit>

# Multithreading with the Vivado Tools

On multiprocessor systems, Vivado tools use multithreading to speed up certain processes,including DRC reporting,statictiming analysis, placement, and routing. The maximum number ofsimultaneous threads varies, depending on the number of processors and task. The maximumnumber of threads by task is:

• DRC reporting: 8
• Statictiming analysis: 8
• Placement: 8
• Routing: 8
• Physical optimization: 8

The default number of maximum simultaneous threads is based on the OS. For Windows systems, the limit is 2; for Linux systems the default is 8. The limit can be changed using a parameter called general.maxThreads. To change the limit use the following Tcl command:

Vivado% set_param general.maxThreads <new limit>

where the new limit must be an integer from 1 to 8, inclusive.
Tcl example on a Windows system:

Vivado% set_param general.maxThreads 2

This means all tasks are limited to two threads regardless of number of processors or the taskbeing executed. If the system has at least eight processors, you can set the limit to 8 and alloweach task to use the maximum number of threads.

Vivado% set_param general.maxThreads 8

To summarize, the number of simultaneous threads is the smallest of the following values:

• Maximum number of processors
• Limit of threads for the task
• General limit of threads

# 批量取消Youtube视频订阅方法

buttons = document.querySelectorAll('#grid-container tp-yt-paper-button');
len = buttons.length;
index = 0;
while (index < len) {
t = 100 * index;
setTimeout((function(index, t) {
return function() {
buttons[index].dispatchEvent(new MouseEvent('click'));
setTimeout(function() {
cancel = document.querySelector('tp-yt-paper-dialog #confirm-button');
cancel.dispatchEvent(new MouseEvent('click'));
console.log(共${len}个订阅，正在取消第${index + 1}个订阅);
},
50);
}
})(index, t), t);
index++;
}