arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.14607cs.SEcs.DC
收藏

利用执行轨迹和大语言模型增强学生在并行编程中的调试能力

Empowering Student Debugging in Parallel Programming with Execution Traces and Large Language Models

The University of Texas at San Antonio(圣安东尼奥德州大学);The University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校)

God'salvation F. Oguibe, Vinodh Kumaran Jayakumar, Tongping Liu, Andrew Lan, Wei Wang

AI总结:

提出ParaView工具,通过执行记录与可视化帮助学生调试并发程序,结合大语言模型分析错误,实验表明调试成功率显著提升。

摘要:

并发编程是计算机科学课程的核心组成部分,但由于其固有的复杂性和并发错误(如死锁和竞争条件)的非确定性,学生仍然难以掌握。在这项工作中,我们提出了ParaView,一个旨在帮助学生理解、调试和纠正C/C++并行程序中并发问题的教育工具。ParaView提供透明的执行记录和可视化,使并行执行变得可观察和可理解。我们通过一系列调试和实现任务对ParaView进行了评估,共有17名学生参与。结果显示,与之前的课程迭代相比,调试和实现成功率显著提高。一项学生调查证实,大多数参与者认为ParaView有帮助。为了进一步支持课堂外的学习,我们探索了使用大语言模型(LLMs)分析并发错误并提出修复建议。虽然LLMs在识别错误和解释执行轨迹方面非常有效,但其错误修复的正确性各不相同,尤其是在更复杂的同步模式中。我们的发现表明,像ParaView这样的记录-可视化工具,辅以人工智能(AI),可以改善并发编程的教学和学习。

英文摘要:

Concurrent programming is a core component of Computer Science curricula, yet remains notoriously difficult for students to master due to its inherent complexity and the nondeterministic nature of concurrency bugs such as deadlocks and race conditions. In this work, we present ParaView, an educational tool designed to help students understand, debug, and correct concurrency issues in parallel programs written in C/C++. ParaView provides transparent execution recording and visualization to make parallel execution observable and comprehensible. We evaluated ParaView through a series of debugging and implementation tasks, with 17 students participating. Results showed a significant improvement in debugging and implementation successes compared to previous course iterations. A student survey confirmed that most participants found ParaView helpful. To further support learning outside the classroom, we explored using Large Language Models (LLMs) to analyze concurrency bugs and suggest fixes. While LLMs were highly effective in identifying bugs and explaining execution traces, the correctness of their bug fixes varied, especially for more complex synchronization patterns. Our findings suggest that recording-visualization tools like ParaView, complemented by artificial intelligence (AI), can improve teaching and learning of concurrent programming.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑