由于大量的计算应用程序挂起,如何摆脱这个问题?

编程入门 行业动态 更新时间:2024-10-08 22:46:36
本文介绍了由于大量的计算应用程序挂起,如何摆脱这个问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我的程序首先找到给定输入的排列,然后对每个通过排列获得的结果进行一些计算.对于较小的输入,它可以正常工作,但对于超过6个字符的输入,它会挂起.我知道6的运算!字符串需要时间,但是为什么要挂?

My program first find permutation of the given input and then performs some computation on each result get by permutation. it works fine for smaller inputs but for the input more than 6 characters, it hangs. i know computation on 6! strings takes time but why hang?

推荐答案

如果您的代码花费更多时间,则需要使用线程进行此计算. 请检查此链接 谢谢 -Amit Hi, if your code is taking more time then you need to use threading for this computation. please check this link thanks -Amit

更多推荐

由于大量的计算应用程序挂起,如何摆脱这个问题?

本文发布于:2023-11-03 05:04:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1554306.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:这个问题   应用程序   挂起

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!