版圖導(dǎo)出gds時錯誤? 0 懸賞園豆: 50 [待解決問題] PIPO STRMOUT exited unsuccessfully!! During translation, if the translator runs out of disk space, the output GDS** or cellview may get corrupted. Clean up the disk space and translate again! 怎樣才能解決這個問題呢? 請大佬們指點(diǎn)! 遠(yuǎn)生 | 初學(xué)一級 | 園豆: 152 提問于:2019-05-12 14:59 顯示幫助 使用"Ctrl+Enter"可進(jìn)行快捷提交,評論支持部分 Markdown 語法:[link](http://example.com) _italic_ **bold** `code`。 < > 分享 分享您的問題 清除回答草稿 您需要 登錄 以后才能回答,未注冊用戶請先 注冊 。
關(guān)于pthread_mutex多個線程忙等待問題? 0 懸賞園豆: 100 [待解決問題] 文檔說如果對一個已加鎖的mutex再次加鎖pthread_mutex_lock會形成一個等待隊列。可是這個示例有點(diǎn)奇怪,我知道線程沒有放棄cpu,可是為什么后面輸出的hello不到數(shù)量? ifndef THREAD_POOL_H define THREAD_POOL_H include include include include include class sample { public: void process(); }; template class threadPool { public: threadPool(); void append(T &s); static void worker(void s); private: std::queue tasks; pthread_t threads[5]; bool run = true; pthread_mutex_t t; }; // template // void threadPool::append(T& s) // { // pthread_t t; // pthread_create(&t,nullptr,worker,&s); // pthread_detach(t); // } template threadPool::threadPool() : tasks() { pthread_mutex_init(&t,nullptr); for(int i=0;i<5;++i) { pthread_create(&threads[i],nullptr,worker,this); pthread_detach(threads[i]); } } template void threadPool::append(T &s) { pthread_mutex_lock(&t); tasks.push(&s); printf("%d append.\n",pthread_self()); pthread_mutex_unlock(&t); } template void threadPool::worker(void s) { auto pool=static_cast*>(s); while (pool->run) { pthread_mutex_lock(&(pool->t)); if (pool->tasks.empty()) { pthread_mutex_unlock(&(pool->t)); printf("%d get the lock but continue.\n",pthread_self()); continue; } auto work = pool->tasks.front(); pool->tasks.pop(); printf("%d get the lock and print\n",pthread_self()); pthread_mutex_unlock(&(pool->t)); work->process(); } return nullptr; } endif //!THREAD_POOL_H include "thread_pool.h" void sample::process() { std::cout<<"hello world.\n"<} include "thread_pool.h" include int main(int argc, char **argv) { threadPool pool; sample d[100]; for(int i=0;i<100;++i) { pool.append(d[i]); } return 0; } 1268307712 get the lock but continue. 1268307712 get the lock but continue. 1268307712 get the lock but continue. 1268307712 get the lock but continue. 1268307712 get the lock but continue. 1268307712 get the lock but continue. 1268307712 get the lock but continue. 1268307712 get the lock but continue. 1268307712 get the lock but continue. 1268307712 get the lock but continue. 1268307712 get the lock but continue. 1268307712 get the lock but continue. 1268307712 get the lock but continue. 1268307712 get the lock but continue. 1268307712 get the lock but continue. 1268307712 get the lock but continue. 1285158720 append. 1268307712 get the lock and print 1251522304 get the lock but continue. 1251522304 get the lock but continue. 1243129600 get the lock but continue. 1259915008 get the lock but continue. 1251522304 get the lock but continue. hello world. 1285158720 append. 1268307712 get the lock and print hello world. 1268307712 get the lock but continue. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1234736896 get the lock and print hello world. 1234736896 get the lock and print hello world. 1234736896 get the lock and print hello world. 1234736896 get the lock and print hello world. 1234736896 get the lock and print hello world. 1234736896 get the lock and print hello world. 1234736896 get the lock and print hello world. 1234736896 get the lock and print hello world. 1234736896 get the lock and print hello world. 1234736896 get the lock and print hello world. 1234736896 get the lock and print hello world. 1234736896 get the lock and print hello world. 1234736896 get the lock and print hello world. 1251522304 get the lock and print hello world. 1251522304 get the lock and print hello world. 1259915008 get the lock and print 1243129600 get the lock and print hello world. 1243129600 get the lock and print hello world. 1243129600 get the lock and print hello world. 1243129600 get the lock and print hello world. 1243129600 get the lock and print hello world. 1285158720 append. 1251522304 get the lock and print hello world. 1234736896 get the lock and print hello world. 1234736896 get the lock and print hello world. 1234736896 get the lock and print hello world. 1234736896 get the lock and print hello world. 1234736896 get the lock and print hello world. 1285158720 append. 1234736896 get the lock and print hello world. 1259915008 get the lock and print hello world. 1259915008 get the lock and print hello world. 1259915008 get the lock and print hello world. hello world. 1234736896 get the lock and print hello world. 1234736896 get the lock and print hello world. 1251522304 get the lock and print hello world. 1251522304 get the lock and print hello world. 1251522304 get the lock and print hello world. 1251522304 get the lock and print hello world. 1251522304 get the lock and print hello world. 1251522304 get the lock but continue. 1251522304 get the lock but continue. 1251522304 get the lock but continue. 1251522304 get the lock but continue. 1251522304 get the lock but continue. 1251522304 get the lock but continue. 1251522304 get the lock but continue. 1251522304 get the lock but continue. 1251522304 get the lock but continue. 1251522304 get the lock but continue. 1251522304 get the lock but continue. 1251522304 get the lock but continue. 1251522304 get the lock but continue. 1251522304 get the lock but continue. 1251522304 get the lock but continue. 1251522304 get the lock but continue. 1251522304 get the lock but continue. 1251522304 get the lock but continue. 1268307712 get the lock but continue. 1259915008 get the lock but continue. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1234736896 get the lock and print hello world. 1234736896 get the lock and print hello world. 1243129600 get the lock and print hello world. 1243129600 get the lock and print hello world. 1243129600 get the lock and print hello world. 1243129600 get the lock and print hello world. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1243129600 get the lock but continue. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 1285158720 append. 頭暈了一下午,麻煩大佬出來解救眾生。 linux pthread c c++ manch1n | 初學(xué)一級 | 園豆: 84 提問于:2019-05-12 01:02 顯示幫助 使用"Ctrl+Enter"可進(jìn)行快捷提交,評論支持部分 Markdown 語法:[link](http://example.com) _italic_ **bold** `code`。 < > 分享 分享您的問題 所有回答(1) 0 main函數(shù)已經(jīng)退出了,其他打印都看不到了 main末尾加個 getchar() 或者同步等待下 2012 | 園豆:19149 (專家六級) | 2019-05-13 09:00 編輯文本 預(yù)覽 上傳圖片 Ctrl+Enter鍵快速提交 清除回答草稿 您需要 登錄 以后才能回答,未注冊用戶請先 注冊 。
org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 68; schema_refer 0 懸賞園豆: 50 [待解決問題] ssh 非maven 警告: Ignored XML validation warning org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 68; schema_reference.4: 無法讀取方案文檔 ' http://www.springframework.org/schema/beans/spring-beans-3.2.0.xsd ', 原因?yàn)?1) 無法找到文檔; 2) 無法讀取文檔; 3) 文檔的根元素不是 。 at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.warning(ErrorHandlerWrapper.java:99) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:392) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:306) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:4162) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaWarning(XSDHandler.java:4153) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument1(XSDHandler.java:2486) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:2183) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:569) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:613) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2446) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1767) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:740) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:380) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:619) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3129) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:880) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:118) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:504) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339) at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:77) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:434) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:392) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:224) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:195) at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125) at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:133) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:636) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:521) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:400) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:291) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4813) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5272) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) applicationContext.xml中beans頭代碼 xmlns=" http://www.springframework.org/schema/beans " xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance " xmlns:dwr=" http://www.directwebremoting.org/schema/spring-dwr " xmlns:context=" http://www.springframework.org/schema/context " xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.directwebremoting.org/schema/spring-dwr-1.9.3.xsd http://www.springframework.org/schema/beans/spring-beans-5.1.6.xsd "> spring 鯖魜 | 初學(xué)一級 | 園豆: 156 提問于:2019-05-11 10:39 顯示幫助 使用"Ctrl+Enter"可進(jìn)行快捷提交,評論支持部分 Markdown 語法:[link](http://example.com) _italic_ **bold** `code`。 < > 分享 分享您的問題 所有回答(1) 0 檢查下jar包的版本和xsd的版本是否吻合,正常情況下應(yīng)該是可以讀取到j(luò)ar包中的xsd配置的。也可以加我qq:849437360,請注明來源。 huangwu | 園豆:267 (菜鳥二級) | 2019-05-12 15:41 編輯文本 預(yù)覽 上傳圖片 Ctrl+Enter鍵快速提交 清除回答草稿 您需要 登錄 以后才能回答,未注冊用戶請先 注冊 。