为什么wait,notify和notifyAll方法放入Object,而不是在一些分隔的类?
请注意,这个问题不是关于将它们移到Thread课堂上,我只是想知道为什么他们会乱扔垃圾Object,而不是一些新的Monitor课程.
我看到了这个想法的以下缺点:
this并且<MyClass>.class变为无效的监视器.因此,我们可以从每个对象中移除5个方法,带来一点祸患.或不?
我正在尝试使用auto-sklearn pip install auto-sklearn,但它会引发错误:
Command "/usr/bin/python3.5 -u -c "
import setuptools, tokenize;
__file__='/tmp/pip-build-tl8y2tfg/psutil/setup.py';
f=getattr(tokenize, 'open', open)(__file__);
code=f.read().replace('\r\n', '\n');
f.close();
exec(compile(code, __file__, 'exec'))
"install
--record /tmp/pip-7t8rbku0-record/install-record.txt
--single-version-externally-managed --compile"
failed with error code 1 in /tmp/pip-build-tl8y2tfg/psutil/
Run Code Online (Sandbox Code Playgroud)
在我的/tmp/目录中没有以"pip-"开头的内容.
我完全按手动完成所有步骤,但仍然有此错误.
我也尝试使用这个问题的命令,但在两种情况下都得到了相同的错误.
我的操作系统是Ubuntu 16.04.2.
我该如何安装auto-sklearn?