Multithreading mongo shell中的Thread和ScopedThread函数

Multithreading mongo shell中的Thread和ScopedThread函数,multithreading,mongodb,Multithreading,Mongodb,我注意到了这些功能。 有关于它的文件吗 如何通过mongo shell使用线程? 我可以在线程中共享游标吗? 如果在线程中共享变量,是否需要锁定它们 下面是github的复制粘贴: Thread = function(){ this.init.apply( this, arguments ); } _threadInject( Thread.prototype ); ScopedThread = function() { this.init.apply( this, arguments );

我注意到了这些功能。 有关于它的文件吗

如何通过mongo shell使用线程? 我可以在线程中共享游标吗? 如果在线程中共享变量,是否需要锁定它们

下面是github的复制粘贴:

Thread = function(){
this.init.apply( this, arguments );
}
_threadInject( Thread.prototype );

ScopedThread = function() {
this.init.apply( this, arguments );
}
ScopedThread.prototype = new Thread( function() {} );
_scopedThreadInject( ScopedThread.prototype );
我收到了伯克利MongoDB员工的遗嘱

该代码是MongoDB的JST测试的一部分。这是无证的 内部测试代码可能在任何时候发生更改,但并非有意更改 是人们在shell中用于多线程的东西。如果你 要多线程访问数据库,请使用中的官方驱动程序 一种支持多线程的语言